/* Clean footer layout */
.mw-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr) !important;
  gap: 36px !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  align-items: start !important;
}

.mw-footer-col h3 {
  margin: 0 0 10px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.mw-footer-col p,
.mw-footer-col li {
  margin: 0 0 8px !important;
  line-height: 1.55 !important;
  font-size: 15px !important;
}

.mw-footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mw-footer-col a {
  font-weight: 600 !important;
  text-decoration: underline !important;
}

@media (max-width: 700px) {
  .mw-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

.page-id-1127 .hero-section,
.page-id-1619 .hero-section,
.page-id-1652 .hero-section,
.page-id-1737 .hero-section,
.page-id-1680 .hero-section,
.page-id-1681 .hero-section,
.page-id-1661 .hero-section,
.page-id-1745 .hero-section,
.page-id-1747 .hero-section,
.page-id-1759 .hero-section,
.page-id-1745 .hero-section,
.page-id-1747 .hero-section {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}


.page-id-1619 .entry-content,
.page-id-1737 .entry-content,
.page-id-1127 .entry-content,
.page-id-1652 .entry-content,
.page-id-1680 .entry-content,
.page-id-1681 .entry-content,
.page-id-1661 .entry-content,
.page-id-1745 .entry-content,
.page-id-1747 .entry-content,
.page-id-1759 .entry-content,
.page-id-1745 .entry-content,
.page-id-1747 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Collapse hero section when it contains no visible title (works site-wide) */
.hero-section:not(:has(.page-title:not([style*="display:none"]))) {
  display: none !important;
}

/* Site-wide: reduce top padding of main content wrapper */
.ct-container-full {
  padding-top: 20px !important;
}

/* -----------------------------------------------
   NAV — Get Started button by URL, not menu position
   This avoids nth-child targeting so menu order changes do not break styling.
----------------------------------------------- */
.header-menu-1 ul.menu a[href*="ApplyWithWolff.com"],
.header-menu-1 ul.menu a[href*="applywithwolff.com"] {
  color: #ffffff !important;
  font-weight: 700 !important;
  background-color: #16a34a !important;
  border: 2px solid #16a34a !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
}
.header-menu-1 ul.menu a[href*="ApplyWithWolff.com"]:hover,
.header-menu-1 ul.menu a[href*="applywithwolff.com"]:hover {
  background-color: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}


/* NAV — Contact safety reset
   Keeps Contact from inheriting old CTA/button styling if cached CSS lingers. */
.header-menu-1 ul.menu a[href*="/contact/"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-style: normal !important;
}

/* -----------------------------------------------
   HEADER — portrait image
----------------------------------------------- */
.site-logo-container img {
  width: 175px !important;
  height: 175px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  object-position: 75% 55% !important;
}

/* -----------------------------------------------
   HEADER — site title positioning
----------------------------------------------- */
.site-branding[data-id="logo"] {
  position: relative !important;
}
.site-title {
  position: absolute !important;
  left: 200px !important;
  top: 25px !important;
  font-size: 2rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.site-title a,
.site-title a:link,
.site-title a:visited,
.site-title a:hover {
  color: #000000 !important;
  text-decoration: none !important;
}

/* -----------------------------------------------
   CALENDAR PAGES — center content
----------------------------------------------- */
.page-id-1209 .entry-content.is-layout-constrained,
.page-id-1266 .entry-content.is-layout-constrained,
.page-id-1271 .entry-content.is-layout-constrained,
.page-id-1286 .entry-content.is-layout-constrained {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* -----------------------------------------------
   FOOTER — light background
----------------------------------------------- */
#footer,
#footer .ct-footer,
.ct-footer[data-id="type-1"],
.ct-footer[data-row="bottom"] {
  background-color: #FAFBFC !important;
}

/* -----------------------------------------------
   MOBILE
----------------------------------------------- */
@media (max-width: 768px) {
  .site-logo-container img {
    width: 125px !important;
    height: 125px !important;
  }
  .site-title {
    font-size: 0.7rem !important;
    left: 120px !important;
    top: 10px !important;
  }
  .site-title a,
  .site-title a:link,
  .site-title a:visited,
  .site-title a:hover {
    font-size: .9rem !important;
  }
}

/* -----------------------------------------------
   FEATURED IMAGES — uniform size, centered
----------------------------------------------- */
.ct-featured-image img,
.entry-thumbnail img,
.wp-block-post-featured-image img {
  max-width: 800px !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* -----------------------------------------------
   HIDE PAGE/POST TITLE — add class "hide-title"
----------------------------------------------- */

.hide-title {
  border: 10px solid red !important;
}

.hide-title .entry-title,
.hide-title .page-title,
.hide-title .ct-page-title,
.hide-title .hero-section,
.hide-title .entry-header {
  display: none !important;
}

/* Hide title area on specific page */

.page-id-1619 .hero-section {
    display: none !important;
}

/* --- WPWriter addition --- */


/* === Michael Wolff – Site CSS (clean, unified additions) ================== */

/* --- Base Readability --- */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: #1b1b1b;
  margin: 0;
  padding: 0;
}

h1 { line-height: 1.2; margin-bottom: 8px; }
h2 { margin-top: 40px; }

/* --- CTA Box --- */
.cta {
  background: #0a66c2;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
}

.cta a, .cta a:link, .cta a:visited {
  color: #ffff00 !important;
  font-weight: 800;
  text-decoration: underline;
  text-shadow: 1px 1px 0 #000;
}

.cta a:hover, .cta a:active {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

/* --- Quote / Pullquote --- */
blockquote {
  border-left: 4px solid #e6e8ec;
  padding-left: 12px;
  color: #424242;
  margin-left: 0;
}

/* --- FAQ Styling --- */
.faq-rollup {
  border: 1px solid #e5e7eb;
  margin: 15px 0;
  border-radius: 6px;
  overflow: hidden;
}

.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  cursor: pointer;
  font-weight: 600;
  color: #183153;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-toggle:hover { background: #f3f4f6; }
.faq-toggle::after {
  content: '▼';
  font-size: 12px;
  transition: transform 0.3s;
}
.faq-rollup.mw-open .faq-toggle::after { transform: rotate(-180deg); }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  background: white;
}
.faq-rollup.mw-open .faq-content {
  max-height: 500px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
}

/* === STATE DIFFERENCE CARDS === */
.state-difference-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.state-card {
  border: 1px solid #e6e8ec;
  border-radius: 6px;
  padding: 20px;
  background: #f7f9fc;
  transition: all 0.3s ease;
}
.state-card:hover {
  border-color: #0a66c2;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.15);
}
.state-card h3 {
  color: #0a66c2;
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}
.state-card p {
  color: #424242;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* === CITY PIPES === */
.city-pipes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.city-pipes a {
  color: #0a66c2;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}
.city-pipes a:hover { color: #054a8b; }

/* === Site Layout Fixes === */
.site-header,
.site-footer { max-width: none !important; }
.mw-doc header,
.mw-doc main,
.mw-doc footer {
  max-width: 800px;
  margin: 0 auto;
}
ul { padding-left: 20px; }

/* === North Carolina State Hub === */
body .mw-nc-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 54px;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}
body .mw-nc-hero {
  background: linear-gradient(135deg, #102a55, #1e40af);
  color: #fff;
  border-radius: 20px;
  padding: 44px 38px;
  margin-bottom: 34px;
}
body .mw-nc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}
body .mw-nc-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: #e0ecff;
}
body .mw-nc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
body .mw-nc-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
body .mw-nc-btn.primary { background: #fff; color: #0a66c2; }
body .mw-nc-btn.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
body .mw-nc-section { margin: 36px 0; }
body .mw-nc-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #0a66c2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body .mw-nc-section h2,
body .mw-nc-feature-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.025em;
  color: #102a55;
}
body .mw-nc-section-intro {
  margin: 0 0 20px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  max-width: 820px;
}
body .mw-nc-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
body .mw-nc-region-card {
  background: #fff;
  border: 1px solid #e0e3ee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body .mw-nc-region-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}
body .mw-nc-region-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
body .mw-nc-region-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #0f172a;
  letter-spacing: -0.018em;
}
body .mw-nc-region-card p,
body .mw-nc-city-card p,
body .mw-nc-base-card p,
body .mw-nc-loan-card p {
  color: #475569;
  line-height: 1.55;
}
body .mw-nc-town-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
body .mw-nc-town {
  background: #f7f9fc;
  border: 1px solid #e0e3ee;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
body .mw-nc-region-card a,
body .mw-nc-city-card a {
  color: #0a66c2;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
}
body .mw-nc-feature-panel {
  background: #f7f9fc;
  border: 1px solid #e0e3ee;
  border-radius: 20px;
  padding: 30px;
}
body .mw-nc-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body .mw-nc-city-card,
body .mw-nc-base-card,
body .mw-nc-loan-card {
  background: #fff;
  border: 1px solid #e0e3ee;
  border-radius: 14px;
  padding: 18px;
}
body .mw-nc-city-card h3,
body .mw-nc-base-card h3,
body .mw-nc-loan-card h3 {
  margin: 0 0 8px;
  color: #102a55;
}
body .mw-nc-bases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body .mw-nc-loan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body .mw-nc-cta {
  background: #fff;
  border-left: 4px solid #0a66c2;
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  margin-top: 34px;
}
body .mw-nc-cta p {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
}
body .mw-nc-cta a {
  display: inline-block;
  background: #0a66c2;
  color: #fff;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
}
body.page-id-1533 .hero-section { display: none !important; }
body.page-id-1533 .entry-content { padding-top: 0 !important; margin-top: 0 !important; }
@media (max-width: 980px) {
  body .mw-nc-region-grid,
  body .mw-nc-bases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .mw-nc-city-grid,
  body .mw-nc-loan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body .mw-nc-hero { padding: 30px 22px; }
  body .mw-nc-region-grid,
  body .mw-nc-city-grid,
  body .mw-nc-bases,
  body .mw-nc-loan-grid { grid-template-columns: 1fr; }
}


/* --- WPWriter addition --- */

/* === Reusable State / Area Hub CSS ======================================= */
body .mw-hub-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 54px;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}
body .mw-hub-hero {
  background: linear-gradient(135deg, #102a55, #1e40af);
  color: #fff;
  border-radius: 20px;
  padding: 44px 38px;
  margin-bottom: 34px;
}
body .mw-hub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}
body .mw-hub-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: #e0ecff;
}
body .mw-hub-actions { display: flex; gap: 12px; flex-wrap: wrap; }
body .mw-hub-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
body .mw-hub-btn.primary { background: #fff; color: #0a66c2; }
body .mw-hub-btn.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
body .mw-hub-section { margin: 36px 0; }
body .mw-hub-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #0a66c2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body .mw-hub-section h2,
body .mw-hub-panel h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.025em;
  color: #102a55;
}
body .mw-hub-intro {
  margin: 0 0 20px;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  max-width: 820px;
}
body .mw-hub-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
body .mw-hub-card {
  background: #fff;
  border: 1px solid #e0e3ee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body .mw-hub-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}
body .mw-hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
body .mw-hub-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #0f172a;
  letter-spacing: -0.018em;
}
body .mw-hub-card p,
body .mw-hub-mini-card p {
  color: #475569;
  line-height: 1.55;
}
body .mw-hub-pill-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
body .mw-hub-pill {
  background: #f7f9fc;
  border: 1px solid #e0e3ee;
  color: #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
body .mw-hub-card a,
body .mw-hub-mini-card a {
  color: #0a66c2;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
}
body .mw-hub-panel {
  background: #f7f9fc;
  border: 1px solid #e0e3ee;
  border-radius: 20px;
  padding: 30px;
}
body .mw-hub-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
body .mw-hub-mini-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .mw-hub-mini-card {
  background: #fff;
  border: 1px solid #e0e3ee;
  border-radius: 14px;
  padding: 18px;
}
body .mw-hub-mini-card h3 {
  margin: 0 0 8px;
  color: #102a55;
}
body .mw-hub-cta {
  background: #fff;
  border-left: 4px solid #0a66c2;
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  margin-top: 34px;
}
body .mw-hub-cta p {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
}
body .mw-hub-cta a {
  display: inline-block;
  background: #0a66c2;
  color: #fff;
  font-weight: 850;
  font-size: 14px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
}
@media (max-width: 980px) {
  body .mw-hub-region-grid,
  body .mw-hub-mini-grid,
  body .mw-hub-mini-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body .mw-hub-hero { padding: 30px 22px; }
  body .mw-hub-region-grid,
  body .mw-hub-mini-grid,
  body .mw-hub-mini-grid.three { grid-template-columns: 1fr; }
}


/* --- WPWriter addition --- */

/* === MW Hub Card Alignment Utilities === */
body .mw-hub-equal-cards .mw-hub-mini-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

body .mw-hub-equal-cards .mw-hub-mini-card a {
  margin-top: auto !important;
  display: inline-block !important;
}

body .mw-hub-compact-cards .mw-hub-mini-card {
  padding: 18px 18px !important;
}

body .mw-hub-compact-cards .mw-hub-mini-card h3 {
  margin-bottom: 8px !important;
}

body .mw-hub-compact-cards .mw-hub-mini-card p {
  margin-bottom: 0 !important;
}


/* --- WPWriter addition --- */

/* === Apex page title/spacing cleanup === */
body.page-id-1355 .entry-header,
body.page-id-1355 .ct-page-title,
body.page-id-1355 .hero-section,
body.page-id-1355 .page-title,
body.page-id-1355 h1.entry-title {
  display: none !important;
}

body.page-id-1355 .site-main,
body.page-id-1355 .content-area,
body.page-id-1355 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-1355 .mw-hub-wrap {
  margin-top: 0 !important;
  padding-top: 8px !important;
}

body.page-id-1355 .mw-hub-hero {
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */

/* === Location pages: hide duplicate theme titles, keep in-body hero H1 === */
body.page-id-1810 .entry-header,
body.page-id-1810 .page-title,
body.page-id-1809 .entry-header,
body.page-id-1809 .page-title {
  display: none !important;
}

body.page-id-1810 .site-main,
body.page-id-1810 .entry-content,
body.page-id-1809 .site-main,
body.page-id-1809 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-1810 .mw-hub-wrap,
body.page-id-1809 .mw-hub-wrap {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* --- WPWriter addition --- */


/* === Location Pages: Hide Duplicate Theme Page Title =====================
   Location pages keep a semantic in-body H1 inside .mw-hub-hero for SEO/AIO.
   This hides the duplicate theme-rendered title above the designed hero box. */
body:has(.mw-hub-wrap) .entry-header,
body:has(.mw-hub-wrap) .page-title,
body:has(.mw-hub-wrap) .ct-title-label,
body:has(.mw-hub-wrap) .hero-section,
body:has(.mw-hub-wrap) .post-title,
body:has(.mw-hub-wrap) .entry-title {
  display: none !important;
}

body:has(.mw-hub-wrap) .site-main,
body:has(.mw-hub-wrap) .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body:has(.mw-hub-wrap) .mw-hub-wrap {
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */

/* === Location card link alignment: site-wide hub/card system ===
   Keeps 'View area/page' links aligned along the bottom of equal-height cards. */
body .mw-hub-equal-cards .mw-hub-card,
body .mw-hub-equal-cards .mw-hub-mini-card,
body .mw-hub-region-grid .mw-hub-card,
body .mw-hub-mini-grid .mw-hub-mini-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

body .mw-hub-equal-cards .mw-hub-card a,
body .mw-hub-equal-cards .mw-hub-mini-card a,
body .mw-hub-region-grid .mw-hub-card a,
body .mw-hub-mini-grid .mw-hub-mini-card a {
  margin-top: auto !important;
  display: inline-block !important;
  padding-top: 10px !important;
}

/* Fort Bragg naming note: use Fort Bragg as the current public name on NC military/location pages. */


/* --- WPWriter addition --- */

/* Locations index: hide duplicate theme title and tighten hero spacing */
body.page-id-1532 .entry-header,
body.page-id-1532 .page-title,
body.page-id-1532 h1.entry-title {
  display: none !important;
}
body.page-id-1532 .site-main,
body.page-id-1532 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-1532 .mw-hub-wrap {
  padding-top: 8px !important;
}


/* --- WPWriter addition --- */

/* NC location pages: hide duplicate theme titles when designed hero H1 exists */
body.page-id-1533 .entry-header,
body.page-id-1533 .page-title,
body.page-id-1533 h1.entry-title,
body.page-id-1355 .entry-header,
body.page-id-1355 .page-title,
body.page-id-1355 h1.entry-title,
body.page-id-1809 .entry-header,
body.page-id-1809 .page-title,
body.page-id-1809 h1.entry-title,
body.page-id-1810 .entry-header,
body.page-id-1810 .page-title,
body.page-id-1810 h1.entry-title,
body.page-id-1811 .entry-header,
body.page-id-1811 .page-title,
body.page-id-1811 h1.entry-title,
body.page-id-1812 .entry-header,
body.page-id-1812 .page-title,
body.page-id-1812 h1.entry-title,
body.page-id-1813 .entry-header,
body.page-id-1813 .page-title,
body.page-id-1813 h1.entry-title,
body.page-id-1814 .entry-header,
body.page-id-1814 .page-title,
body.page-id-1814 h1.entry-title,
body.page-id-1815 .entry-header,
body.page-id-1815 .page-title,
body.page-id-1815 h1.entry-title,
body.page-id-1816 .entry-header,
body.page-id-1816 .page-title,
body.page-id-1816 h1.entry-title,
body.page-id-1817 .entry-header,
body.page-id-1817 .page-title,
body.page-id-1817 h1.entry-title,
body.page-id-1819 .entry-header,
body.page-id-1819 .page-title,
body.page-id-1819 h1.entry-title {
  display: none !important;
}

body.page-id-1533 .entry-content,
body.page-id-1355 .entry-content,
body.page-id-1809 .entry-content,
body.page-id-1810 .entry-content,
body.page-id-1811 .entry-content,
body.page-id-1812 .entry-content,
body.page-id-1813 .entry-content,
body.page-id-1814 .entry-content,
body.page-id-1815 .entry-content,
body.page-id-1816 .entry-content,
body.page-id-1817 .entry-content,
body.page-id-1819 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */

/* Footer legal line: full-width, smaller, cleaner */
body .mw-footer-legal {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  display: block !important;
  border-top: 1px solid rgba(255,255,255,.18) !important;
  padding-top: 14px !important;
  margin-top: 4px !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  opacity: .78 !important;
}
body .mw-footer-legal p {
  margin: 0 !important;
  max-width: 1100px !important;
}


/* --- WPWriter addition --- */


/* === Rate Lock Blog Draft: alignment + reusable site styling === */
body .mw-rate-question-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}
body .mw-rate-question-grid > div {
  min-width: 0 !important;
}
body .mw-rate-faq {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body .mw-rate-faq .faq-rollup {
  margin: 12px 0 !important;
  border-color: #e0e3ee !important;
  border-radius: 8px !important;
}
body .mw-rate-faq .faq-toggle {
  text-align: left !important;
  justify-content: space-between !important;
  color: #102a55 !important;
  background: #f7f9fc !important;
}
body .mw-rate-faq .faq-toggle span:first-child {
  display: block !important;
  width: 100% !important;
}
body .mw-rate-faq .toggle-icon {
  display: none !important;
}
body .mw-rate-faq .faq-content {
  line-height: 1.65 !important;
  color: #475569 !important;
}
body .mw-rate-cta {
  margin: 34px 0 !important;
}
body .mw-rate-cta-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}
body .mw-rate-cta-phone {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}
@media (max-width: 980px) {
  body .mw-rate-question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  body .mw-rate-question-grid {
    grid-template-columns: 1fr !important;
  }
  body .mw-rate-cta-actions {
    display: block !important;
  }
  body .mw-rate-cta-actions a {
    margin: 0 8px 8px 0 !important;
  }
}


/* --- WPWriter addition --- */


/* === Rate Lock Blog FAQ: match Loan Program Finder roll-up style === */
body .mw-rate-faq.mw-lpf-faq {
  margin: 32px 0 0 !important;
  max-width: 100% !important;
}
body .mw-rate-faq .mw-lpf-faq-item {
  border-bottom: 1px solid #e0e3ee !important;
}
body .mw-rate-faq .mw-lpf-faq-item:last-child {
  border-bottom: none !important;
}
body .mw-rate-faq .mw-lpf-faq-q {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #1a1e2e !important;
  cursor: pointer !important;
  padding: 16px 30px 16px 0 !important;
  position: relative !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  user-select: none !important;
  text-align: left !important;
}
body .mw-rate-faq .mw-lpf-faq-q::after {
  content: '+' !important;
  position: absolute !important;
  right: 2px !important;
  top: 13px !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  color: #0a66c2 !important;
  line-height: 1 !important;
}
body .mw-rate-faq .mw-lpf-faq-item.mw-open .mw-lpf-faq-q::after {
  content: '\2212' !important;
}
body .mw-rate-faq .mw-lpf-faq-q:hover {
  color: #0a66c2 !important;
}
body .mw-rate-faq .mw-lpf-faq-a {
  color: #333 !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height .25s ease, padding .25s ease !important;
  text-align: left !important;
}
body .mw-rate-faq .mw-lpf-faq-item.mw-open .mw-lpf-faq-a {
  padding: 0 0 16px 0 !important;
  max-height: 600px !important;
}


/* --- WPWriter addition --- */


/* === Global MW FAQ system: use site-wide going forward ===
   Standard markup:
   <section class="mw-faq">
     <div class="mw-faq-item">
       <div class="mw-faq-question">Question?</div>
       <div class="mw-faq-answer">Answer.</div>
     </div>
   </section>
*/
body .mw-faq {
  margin: 32px 0 0 !important;
  max-width: 100% !important;
}
body .mw-faq-item {
  border-bottom: 1px solid #e0e3ee !important;
}
body .mw-faq-item:last-child {
  border-bottom: none !important;
}
body .mw-faq-question {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #1a1e2e !important;
  cursor: pointer !important;
  padding: 16px 30px 16px 0 !important;
  position: relative !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  user-select: none !important;
  text-align: left !important;
}
body .mw-faq-question::after {
  content: '+' !important;
  position: absolute !important;
  right: 2px !important;
  top: 13px !important;
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  color: #0a66c2 !important;
  line-height: 1 !important;
}
body .mw-faq-item.mw-open .mw-faq-question::after {
  content: '\2212' !important;
}
body .mw-faq-question:hover {
  color: #0a66c2 !important;
}
body .mw-faq-answer {
  color: #333 !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  margin: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height .25s ease, padding .25s ease !important;
  text-align: left !important;
}
body .mw-faq-item.mw-open .mw-faq-answer {
  padding: 0 0 16px 0 !important;
  max-height: 700px !important;
}


/* --- WPWriter addition --- */

/* === Articles hub search contrast fix === */
body.page-id-2000 .mw-articles-search input[type="text"],
body.page-id-2000 .mw-articles-search input[type="search"] {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #cbd5e1 !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .18) !important;
}
body.page-id-2000 .mw-articles-search input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}


/* --- WPWriter addition --- */


/* === Articles page cleanup === */
body.page-id-2000 .entry-header,
body.page-id-2000 .page-title,
body.page-id-2000 h1.entry-title,
body.page-id-2000 .ct-title-label,
body.page-id-2000 .hero-section {
  display: none !important;
}

body.page-id-2000 .site-main,
body.page-id-2000 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-2000 .mw-articles-hero {
  text-align: left !important;
}

body.page-id-2000 .mw-articles-hero > div {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

body.page-id-2000 .mw-articles-hero h1,
body.page-id-2000 .mw-articles-hero h2,
body.page-id-2000 .mw-articles-hero p,
body.page-id-2000 .mw-articles-section,
body.page-id-2000 .mw-articles-section h2,
body.page-id-2000 .mw-articles-section h3,
body.page-id-2000 .mw-articles-section h4,
body.page-id-2000 .mw-articles-section p,
body.page-id-2000 .mw-articles-section li {
  text-align: left !important;
}

body.page-id-2000 .mw-articles-search {
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: flex-start !important;
}

body.page-id-2000 .mw-articles-section [style*="display: flex; flex-direction: column"] > div {
  text-align: left !important;
}

body.page-id-2000 .mw-articles-section [style*="display: flex; flex-direction: column"] h4,
body.page-id-2000 .mw-articles-section [style*="display: flex; flex-direction: column"] p {
  text-align: left !important;
}


/* --- WPWriter addition --- */


/* === Standard page header cleanup for Tools-style pages === */
body.page-id-1532 .entry-header,
body.page-id-1532 .page-title,
body.page-id-1532 h1.entry-title,
body.page-id-2000 .entry-header,
body.page-id-2000 .page-title,
body.page-id-2000 h1.entry-title,
body.page-id-67 .entry-header,
body.page-id-67 .page-title,
body.page-id-67 h1.entry-title {
  display: none !important;
}

body.page-id-1532 .entry-content,
body.page-id-2000 .entry-content,
body.page-id-67 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */


/* === Locations page header: match Tools & Resources card === */
body.page-id-1532 .mw-hub-wrap {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
body.page-id-1532 .mw-hub-hero {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  color: #1b1b1b !important;
}
body.page-id-1532 .mw-hub-hero h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}
body.page-id-1532 .mw-hub-hero p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 0 16px !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
}
body.page-id-1532 .mw-hub-eyebrow {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  color: #6c757d !important;
  margin: 0 0 10px !important;
  display: block !important;
}
body.page-id-1532 .mw-hub-btn.primary,
body.page-id-1532 .mw-hub-btn.secondary {
  background: #0a66c2 !important;
  color: #ffff00 !important;
  border: 0 !important;
  border-radius: 7px !important;
  padding: 9px 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}


/* --- WPWriter addition --- */


/* === Articles page header: match Tools & Resources card === */
body.page-id-2000 .mw-articles-wrapper {
  width: auto !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px !important;
  overflow-x: visible !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
body.page-id-2000 .mw-articles-hero {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  color: #1b1b1b !important;
  text-align: left !important;
}
body.page-id-2000 .mw-articles-hero > div {
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}
body.page-id-2000 .mw-articles-hero h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.page-id-2000 .mw-articles-hero p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 0 16px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}
body.page-id-2000 .mw-articles-search {
  max-width: 100% !important;
  margin: 12px 0 0 !important;
  justify-content: flex-start !important;
}
body.page-id-2000 .mw-articles-section,
body.page-id-2000 .mw-articles-footer {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* --- WPWriter addition --- */


/* === Contact page header: match Tools & Resources card === */
body.page-id-67 .entry-content > div:first-child {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
  line-height: 1.65 !important;
}
body.page-id-67 .entry-content > div:first-child > h1:first-of-type {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-bottom: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  padding: 28px 28px 0 !important;
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  line-height: 1.3 !important;
}
body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-top: 0 !important;
  border-radius: 0 0 14px 14px !important;
  padding: 6px 28px 24px !important;
  margin: 0 0 24px !important;
  font-size: 14px !important;
  color: #374151 !important;
  line-height: 1.6 !important;
  box-shadow: 0 6px 18px rgba(10,102,194,.06) !important;
}
@media (max-width: 540px) {
  body.page-id-1532 .mw-hub-wrap,
  body.page-id-2000 .mw-articles-wrapper,
  body.page-id-67 .entry-content > div:first-child {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.page-id-1532 .mw-hub-hero,
  body.page-id-2000 .mw-articles-hero {
    padding: 20px 18px !important;
  }
  body.page-id-67 .entry-content > div:first-child > h1:first-of-type {
    padding: 20px 18px 0 !important;
  }
  body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p {
    padding: 6px 18px 20px !important;
  }
}


/* --- WPWriter addition --- */


/* === Loan Program Finder header: match Tools & Resources card === */
body.page-id-1598 .entry-header,
body.page-id-1598 .page-title,
body.page-id-1598 h1.entry-title {
  display: none !important;
}
body.page-id-1598 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-1598 .mw-lpf-wrap,
body.page-id-1598 .mw-lpf-root {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
body.page-id-1598 .mw-lpf-hero,
body.page-id-1598 .mw-lpf-header {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  color: #1b1b1b !important;
  text-align: left !important;
}
body.page-id-1598 .mw-lpf-hero h1,
body.page-id-1598 .mw-lpf-hero h2,
body.page-id-1598 .mw-lpf-header h1,
body.page-id-1598 .mw-lpf-header h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.page-id-1598 .mw-lpf-hero p,
body.page-id-1598 .mw-lpf-header p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  text-align: left !important;
}


/* --- WPWriter addition --- */


/* === Loan Program Finder actual intro box fix === */
body.page-id-1598 .mw-lpf-root {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
body.page-id-1598 .mw-lpf-intro {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  text-align: left !important;
}
body.page-id-1598 .mw-lpf-title {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.page-id-1598 .mw-lpf-lede {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
  text-align: left !important;
}
@media (max-width: 540px) {
  body.page-id-1598 .mw-lpf-root {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.page-id-1598 .mw-lpf-intro {
    padding: 20px 18px !important;
  }
}


/* --- WPWriter addition --- */


/* === Home page header: match standard Tools-style header card === */
body.page-id-838 .mw-home {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
body.page-id-838 .mw-home-hero {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  text-align: left !important;
}
body.page-id-838 .mw-home-hero .mw-hub-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #6c757d !important;
  margin: 0 0 10px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
body.page-id-838 .mw-home-hero .mw-hub-headline {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.page-id-838 .mw-home-hero .mw-hub-sub {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 0 16px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}
body.page-id-838 .mw-home-hero .mw-cta-row {
  margin: 14px 0 0 !important;
}
@media (max-width: 540px) {
  body.page-id-838 .mw-home {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.page-id-838 .mw-home-hero {
    padding: 20px 18px !important;
  }
}


/* --- WPWriter addition --- */


/* === Tools page: remove accidental full-page background/border treatment === */
body.page-id-1582,
body.page-id-1582 .site-main,
body.page-id-1582 article,
body.page-id-1582 .entry-content,
body.page-id-1582 .ct-container-full,
body.page-id-1582 .ct-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body.page-id-1582 .mw-tools-root {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}


/* --- WPWriter addition --- */


/* === Standard header / CTA system refinements === */
.mw-standard-header,
body.page-id-531 .mw-standard-header {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 auto 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  text-align: left !important;
  max-width: 800px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}
.mw-standard-header h1,
.mw-standard-header h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}
.mw-standard-header p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* Reduce inconsistent top whitespace above header cards */
body.page-id-1598 .entry-content,
body.page-id-67 .entry-content,
body.page-id-828 .entry-content,
body.page-id-746 .entry-content,
body.page-id-531 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Hide old header/banner images where present on these hub pages */
body.page-id-531 figure.page-hero,
body.page-id-746 figure.page-hero,
body.page-id-828 figure.page-hero,
body.page-id-746 .wp-block-post-featured-image,
body.page-id-828 .wp-block-post-featured-image,
body.page-id-531 .wp-block-post-featured-image {
  display: none !important;
}


/* --- WPWriter addition --- */


/* === 2026-06-30 page spacing + standard header fixes === */

/* Match Articles top spacing on Loan Program Finder + Contact */
body.page-id-1598 .ct-container-full,
body.page-id-1598 .site-main,
body.page-id-1598 article,
body.page-id-1598 .entry-content,
body.page-id-67 .ct-container-full,
body.page-id-67 .site-main,
body.page-id-67 article,
body.page-id-67 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Tools: restore breathing room between header card and first body block */
body.page-id-1582 .mw-tools-header {
  margin-bottom: 30px !important;
}
body.page-id-1582 .mw-tools-label:first-of-type {
  margin-top: 0 !important;
}
body.page-id-1582 .mw-tools-label {
  margin-bottom: 12px !important;
}

/* Raleigh Q&A: remove built-in title, constrain width, align body, normalize colors */
body.page-id-531 .entry-header,
body.page-id-531 .page-title,
body.page-id-531 h1.entry-title,
body.page-id-531 .ct-title-label,
body.page-id-531 .hero-section {
  display: none !important;
}
body.page-id-531 .ct-container-full,
body.page-id-531 .site-main,
body.page-id-531 article,
body.page-id-531 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-531 .entry-content {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
  line-height: 1.65 !important;
  text-align: left !important;
}
body.page-id-531 .toc,
body.page-id-746 .toc {
  background: #f7f9fc !important;
  border: 1px solid #e0e3ee !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin: 0 0 24px !important;
  color: #374151 !important;
}
body.page-id-531 .toc a,
body.page-id-746 .toc a {
  color: #0a66c2 !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}
body.page-id-531 .cta,
body.page-id-746 .cta {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e0e3ee !important;
  border-left: 4px solid #0a66c2 !important;
  border-radius: 10px !important;
  padding: 22px 24px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
body.page-id-531 .cta a,
body.page-id-746 .cta a {
  color: #0a66c2 !important;
  text-shadow: none !important;
}
body.page-id-531 .btn-primary,
body.page-id-531 .ask-button,
body.page-id-746 .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0a66c2 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  border: 0 !important;
  text-shadow: none !important;
}
body.page-id-531 .qa-start,
body.page-id-531 .ask-panel {
  background: #f7f9fc !important;
  border: 1px solid #e0e3ee !important;
  border-left: 4px solid #0a66c2 !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin: 20px 0 !important;
}
body.page-id-531 h2,
body.page-id-746 h2 {
  color: #102a55 !important;
  letter-spacing: -0.02em !important;
}
body.page-id-531 h3,
body.page-id-746 h3 {
  color: #102a55 !important;
}
body.page-id-531 .wp-block-query,
body.page-id-746 .wp-block-query {
  margin: 12px 0 24px !important;
}
body.page-id-531 .wp-block-columns,
body.page-id-746 .wp-block-columns {
  gap: 16px !important;
}
body.page-id-531 .faq.is-collapsible,
body.page-id-746 .faq.is-collapsible {
  border: 1px solid #e0e3ee !important;
  border-radius: 12px !important;
  padding: 4px 18px !important;
  background: #ffffff !important;
}
body.page-id-531 .faq-q,
body.page-id-746 .faq-q {
  color: #102a55 !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 700 !important;
}

/* VA NC page: hide theme title, add same page body constraints, remove old image, standardize spacing */
body.page-id-746 .entry-header,
body.page-id-746 .page-title,
body.page-id-746 h1.entry-title,
body.page-id-746 .ct-title-label,
body.page-id-746 .hero-section {
  display: none !important;
}
body.page-id-746 .ct-container-full,
body.page-id-746 .site-main,
body.page-id-746 article,
body.page-id-746 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-id-746 .entry-content > main,
body.page-id-746 .entry-content main {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
  line-height: 1.65 !important;
}
body.page-id-746 figure.page-hero,
body.page-id-746 .page-hero {
  display: none !important;
}
body.page-id-746 .lead {
  font-size: 16px !important;
  color: #374151 !important;
  line-height: 1.65 !important;
  margin: 0 0 24px !important;
}
body.page-id-746 section {
  margin: 28px 0 !important;
}
body.page-id-746 .back-top a {
  color: #64748b !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

@media (max-width: 540px) {
  body.page-id-531 .entry-content,
  body.page-id-746 .entry-content main {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.page-id-531 .mw-standard-header,
  body.page-id-746 .mw-standard-header {
    padding: 20px 18px !important;
  }
}


/* --- WPWriter addition --- */


/* === Raleigh Q&A safety cleanup: remove leftover hide-title marker === */
body.page-id-531 .hide-title {
  display: none !important;
  border: 0 !important;
}

/* Keep standard header card flush with Articles-style top spacing */
body.page-id-531 .mw-standard-header,
body.page-id-746 .mw-standard-header {
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */


/* === Homepage: reduce excess space above title block to match Articles layout === */
body.home .ct-container-full,
body.home .site-main,
body.home article,
body.home .entry-content,
body.home .hero-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.home .mw-standard-header,
body.home .home-hero,
body.home .hero-card {
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */


/* === Raleigh Roadmap: standardize header to current light header-card pattern === */
body.page-id-828 .entry-header,
body.page-id-828 .page-title,
body.page-id-828 h1.entry-title,
body.page-id-828 .ct-title-label,
body.page-id-828 .hero-section {
  display: none !important;
}

body.page-id-828 .ct-container-full,
body.page-id-828 .site-main,
body.page-id-828 article,
body.page-id-828 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-828 .mw-roadmap.mw-hub-wrap {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
}

body.page-id-828 .mw-roadmap .mw-breadcrumb {
  display: none !important;
}

body.page-id-828 .mw-roadmap .mw-hub-hero {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  color: #1b1b1b !important;
  text-align: left !important;
}

body.page-id-828 .mw-roadmap .mw-hub-hero .mw-hub-eyebrow {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #6c757d !important;
  margin: 0 0 10px !important;
  display: block !important;
}

body.page-id-828 .mw-roadmap .mw-hub-hero h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #1b1b1b !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

body.page-id-828 .mw-roadmap .mw-hub-hero p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 0 16px !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
  text-align: left !important;
}

body.page-id-828 .mw-roadmap .mw-hub-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 14px 0 0 !important;
}

body.page-id-828 .mw-roadmap .mw-hub-btn.primary,
body.page-id-828 .mw-roadmap .mw-hub-btn.secondary {
  background: #0a66c2 !important;
  color: #ffff00 !important;
  border: 0 !important;
  border-radius: 7px !important;
  padding: 9px 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
}

body.page-id-828 .mw-roadmap .mw-hub-section {
  margin: 30px 0 !important;
}

body.page-id-828 .mw-roadmap .mw-hub-section:first-of-type {
  margin-top: 0 !important;
}

@media (max-width: 540px) {
  body.page-id-828 .mw-roadmap.mw-hub-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.page-id-828 .mw-roadmap .mw-hub-hero {
    padding: 20px 18px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-06-30: Fix header-to-body spacing + readable CTA buttons === */

/* Consistent gap below light title/header cards */
body.page-id-838 .mw-home-hero,
body.page-id-1582 .mw-tools-header,
body.page-id-746 .mw-standard-header,
body.page-id-531 .mw-standard-header,
body.page-id-1598 .mw-lpf-intro,
body.page-id-1598 .mw-lpf-hero,
body.page-id-1598 .mw-lpf-header {
  margin-bottom: 32px !important;
}

/* Keep the first body block from visually touching the header card */
body.page-id-838 .mw-home-hero + *,
body.page-id-1582 .mw-tools-header + *,
body.page-id-746 .mw-standard-header + *,
body.page-id-531 .mw-standard-header + *,
body.page-id-1598 .mw-lpf-intro + *,
body.page-id-1598 .mw-lpf-hero + *,
body.page-id-1598 .mw-lpf-header + * {
  margin-top: 0 !important;
}

/* Tools page: force first section label/body to breathe after header */
body.page-id-1582 .mw-tools-header + .mw-tools-label {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

/* VA + Raleigh Q&A: prevent lead/TOC blocks from crowding header */
body.page-id-746 .mw-standard-header + .lead,
body.page-id-531 .mw-standard-header + .toc {
  margin-top: 0 !important;
}

/* Loan Program Finder: prevent quiz card from crowding title block */
body.page-id-1598 .mw-lpf-intro + .mw-lpf-card {
  margin-top: 0 !important;
}

/* Raleigh Q&A: readable CTA box and buttons */
body.page-id-531 .cta {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e0e3ee !important;
  border-left: 4px solid #0a66c2 !important;
  border-radius: 12px !important;
  padding: 22px 24px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.06) !important;
}
body.page-id-531 .cta h3,
body.page-id-531 .cta p,
body.page-id-531 .cta .cta-note,
body.page-id-531 .cta span {
  color: #0f172a !important;
  text-shadow: none !important;
}
body.page-id-531 .cta a:not(.btn-primary):not(.ask-button) {
  color: #0a66c2 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
body.page-id-531 .cta .btn-primary,
body.page-id-531 .cta a.btn-primary,
body.page-id-531 .cta-actions .btn-primary,
body.page-id-531 a.ask-button {
  background: #0a66c2 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}
body.page-id-531 .cta .btn-primary:hover,
body.page-id-531 .cta a.btn-primary:hover,
body.page-id-531 a.ask-button:hover {
  background: #084b8f !important;
  color: #ffffff !important;
}

@media (max-width: 540px) {
  body.page-id-838 .mw-home-hero,
  body.page-id-1582 .mw-tools-header,
  body.page-id-746 .mw-standard-header,
  body.page-id-531 .mw-standard-header,
  body.page-id-1598 .mw-lpf-intro,
  body.page-id-1598 .mw-lpf-hero,
  body.page-id-1598 .mw-lpf-header {
    margin-bottom: 26px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01 Confirmed: unified page shell spacing system ===
   Applies the Locations-style content spacing and gray page background to core landing/resource pages. */

/* Page shell background behind full body/content area */
body.page-id-838 .ct-container-full,
body.page-id-838 .site-main,
body.page-id-838 article,
body.page-id-838 .entry-content,
body.page-id-1598 .ct-container-full,
body.page-id-1598 .site-main,
body.page-id-1598 article,
body.page-id-1598 .entry-content,
body.page-id-67 .ct-container-full,
body.page-id-67 .site-main,
body.page-id-67 article,
body.page-id-67 .entry-content,
body.page-id-1582 .ct-container-full,
body.page-id-1582 .site-main,
body.page-id-1582 article,
body.page-id-1582 .entry-content,
body.page-id-828 .ct-container-full,
body.page-id-828 .site-main,
body.page-id-828 article,
body.page-id-828 .entry-content,
body.page-id-746 .ct-container-full,
body.page-id-746 .site-main,
body.page-id-746 article,
body.page-id-746 .entry-content,
body.page-id-531 .ct-container-full,
body.page-id-531 .site-main,
body.page-id-531 article,
body.page-id-531 .entry-content {
  background: #f7f9fc !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Outer wrapper: same top space and centered width across these pages */
body.page-id-838 .mw-home,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
body.page-id-1582 .mw-tools-root,
body.page-id-828 .mw-roadmap.mw-hub-wrap,
body.page-id-746 .entry-content main,
body.page-id-746 .entry-content > main,
body.page-id-531 .entry-content {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 52px 20px 56px !important;
  background: transparent !important;
  color: #1b1b1b !important;
}

/* Header/title card: keep the current light-card style and force Locations-style gap below */
body.page-id-838 .mw-home-hero,
body.page-id-1598 .mw-lpf-intro,
body.page-id-1598 .mw-lpf-hero,
body.page-id-1598 .mw-lpf-header,
body.page-id-67 .entry-content > div:first-child > h1:first-of-type,
body.page-id-1582 .mw-tools-header,
body.page-id-828 .mw-roadmap .mw-hub-hero,
body.page-id-746 .mw-standard-header,
body.page-id-531 .mw-standard-header {
  margin-top: 0 !important;
  margin-bottom: 34px !important;
}

/* Contact page title + paragraph are split elements; make the combined card keep the gap after the paragraph */
body.page-id-67 .entry-content > div:first-child > h1:first-of-type {
  margin-bottom: 0 !important;
}
body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p {
  margin-bottom: 34px !important;
}

/* First body block: no collision with header, no negative/zero forced crowding */
body.page-id-838 .mw-home-hero + *,
body.page-id-1598 .mw-lpf-intro + .mw-lpf-card,
body.page-id-1598 .mw-lpf-hero + *,
body.page-id-1598 .mw-lpf-header + *,
body.page-id-1582 .mw-tools-header + .mw-tools-label,
body.page-id-828 .mw-roadmap .mw-hub-hero + *,
body.page-id-746 .mw-standard-header + *,
body.page-id-531 .mw-standard-header + * {
  margin-top: 0 !important;
}

/* Tools: restore full page-body feel and make cards sit inside the gray shell */
body.page-id-1582 .mw-tools-root {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body.page-id-1582 .mw-tools-header {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
}
body.page-id-1582 .mw-tool-card,
body.page-id-1582 .mw-credit-section {
  background: #ffffff !important;
}
body.page-id-1582 .mw-tools-label {
  display: block !important;
  margin: 0 0 14px 2px !important;
}
body.page-id-1582 .mw-tool-card + .mw-tools-label,
body.page-id-1582 .mw-credit-section + .mw-tools-label {
  margin-top: 28px !important;
}

/* Raleigh Roadmap / VA / Q&A: clear body-block separation from header */
body.page-id-828 .mw-roadmap .mw-hub-section:first-of-type,
body.page-id-746 .mw-standard-header + .lead,
body.page-id-531 .mw-standard-header + .toc {
  margin-top: 0 !important;
}
body.page-id-828 .mw-roadmap .mw-hub-section:first-of-type,
body.page-id-746 .lead,
body.page-id-531 .toc {
  margin-bottom: 30px !important;
}

/* Make body cards/blocks read as cards inside the gray shell where applicable */
body.page-id-531 .toc,
body.page-id-531 .cta,
body.page-id-531 .qa-start,
body.page-id-531 .ask-panel,
body.page-id-746 .toc,
body.page-id-746 .cta,
body.page-id-828 .mw-toc,
body.page-id-828 .mw-step,
body.page-id-828 .mw-note-card,
body.page-id-828 .mw-hub-cta {
  background: #ffffff !important;
}

@media (max-width: 540px) {
  body.page-id-838 .mw-home,
  body.page-id-1598 .mw-lpf-root,
  body.page-id-67 .entry-content > div:first-child,
  body.page-id-1582 .mw-tools-root,
  body.page-id-828 .mw-roadmap.mw-hub-wrap,
  body.page-id-746 .entry-content main,
  body.page-id-746 .entry-content > main,
  body.page-id-531 .entry-content {
    padding: 36px 18px 44px !important;
  }

  body.page-id-838 .mw-home-hero,
  body.page-id-1598 .mw-lpf-intro,
  body.page-id-1598 .mw-lpf-hero,
  body.page-id-1598 .mw-lpf-header,
  body.page-id-1582 .mw-tools-header,
  body.page-id-828 .mw-roadmap .mw-hub-hero,
  body.page-id-746 .mw-standard-header,
  body.page-id-531 .mw-standard-header,
  body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p {
    margin-bottom: 28px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01 Correction: restore white body panel and tighten selected top gaps === */

/* Keep outer page gray, but restore the centered white body panel over it */
body.page-id-838 .mw-home,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
body.page-id-1582 .mw-tools-root,
body.page-id-828 .mw-roadmap.mw-hub-wrap,
body.page-id-746 .entry-content main,
body.page-id-746 .entry-content > main,
body.page-id-531 .entry-content {
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

/* General shell vertical spacing */
body.page-id-828 .mw-roadmap.mw-hub-wrap,
body.page-id-746 .entry-content main,
body.page-id-746 .entry-content > main,
body.page-id-531 .entry-content {
  padding-top: 44px !important;
  padding-bottom: 56px !important;
}

/* Home / Tools / Contact / Program Finder: reduce too-wide title-to-header gap */
body.page-id-838 .mw-home,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
body.page-id-1582 .mw-tools-root {
  padding-top: 32px !important;
  padding-bottom: 56px !important;
}

/* Title cards: reduce gap after title card on the tighter pages */
body.page-id-838 .mw-home-hero,
body.page-id-1598 .mw-lpf-intro,
body.page-id-1598 .mw-lpf-hero,
body.page-id-1598 .mw-lpf-header,
body.page-id-1582 .mw-tools-header {
  margin-bottom: 24px !important;
}

/* Contact title card is split into h1 + p; reduce the bottom gap after the paragraph */
body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p {
  margin-bottom: 24px !important;
}

/* Keep deeper guide pages with a clearer header/body gap */
body.page-id-828 .mw-roadmap .mw-hub-hero,
body.page-id-746 .mw-standard-header,
body.page-id-531 .mw-standard-header {
  margin-bottom: 32px !important;
}

/* Make sure the gray page background is visible outside the white panel */
body.page-id-838 .entry-content,
body.page-id-1598 .entry-content,
body.page-id-67 .entry-content,
body.page-id-1582 .entry-content,
body.page-id-828 .entry-content,
body.page-id-746 .entry-content,
body.page-id-531 .entry-content {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Prevent nested white panels from blending into white body where they should remain cards */
body.page-id-1582 .mw-tool-card,
body.page-id-1582 .mw-credit-section,
body.page-id-828 .mw-step,
body.page-id-828 .mw-note-card,
body.page-id-828 .mw-hub-cta,
body.page-id-531 .toc,
body.page-id-531 .cta,
body.page-id-531 .qa-start,
body.page-id-531 .ask-panel,
body.page-id-746 .toc,
body.page-id-746 .cta {
  border-color: #e0e3ee !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}

@media (max-width: 540px) {
  body.page-id-838 .mw-home,
  body.page-id-1598 .mw-lpf-root,
  body.page-id-67 .entry-content > div:first-child,
  body.page-id-1582 .mw-tools-root,
  body.page-id-828 .mw-roadmap.mw-hub-wrap,
  body.page-id-746 .entry-content main,
  body.page-id-746 .entry-content > main,
  body.page-id-531 .entry-content {
    max-width: 100% !important;
    padding: 26px 18px 44px !important;
  }

  body.page-id-838 .mw-home-hero,
  body.page-id-1598 .mw-lpf-intro,
  body.page-id-1598 .mw-lpf-hero,
  body.page-id-1598 .mw-lpf-header,
  body.page-id-1582 .mw-tools-header,
  body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p {
    margin-bottom: 22px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01: Standard page title/body gap ===
   Standard going forward: 30px gap between the title/header card and the first body block. */

body.page-id-838 .mw-home-hero,
body.page-id-1598 .mw-lpf-intro,
body.page-id-1598 .mw-lpf-hero,
body.page-id-1598 .mw-lpf-header,
body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p,
body.page-id-1582 .mw-tools-header,
body.page-id-828 .mw-roadmap .mw-hub-hero,
body.page-id-746 .mw-standard-header,
body.page-id-531 .mw-standard-header {
  margin-bottom: 30px !important;
}

body.page-id-838 .mw-home-hero + *,
body.page-id-1598 .mw-lpf-intro + .mw-lpf-card,
body.page-id-1598 .mw-lpf-hero + *,
body.page-id-1598 .mw-lpf-header + *,
body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p + *,
body.page-id-1582 .mw-tools-header + .mw-tools-label,
body.page-id-828 .mw-roadmap .mw-hub-hero + *,
body.page-id-746 .mw-standard-header + *,
body.page-id-531 .mw-standard-header + * {
  margin-top: 0 !important;
}

@media (max-width: 540px) {
  body.page-id-838 .mw-home-hero,
  body.page-id-1598 .mw-lpf-intro,
  body.page-id-1598 .mw-lpf-hero,
  body.page-id-1598 .mw-lpf-header,
  body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p,
  body.page-id-1582 .mw-tools-header,
  body.page-id-828 .mw-roadmap .mw-hub-hero,
  body.page-id-746 .mw-standard-header,
  body.page-id-531 .mw-standard-header {
    margin-bottom: 26px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01: Tighten top space above title cards on short landing/resource pages === */
body.page-id-838 .mw-home,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
body.page-id-1582 .mw-tools-root {
  padding-top: 18px !important;
}

@media (max-width: 540px) {
  body.page-id-838 .mw-home,
  body.page-id-1598 .mw-lpf-root,
  body.page-id-67 .entry-content > div:first-child,
  body.page-id-1582 .mw-tools-root {
    padding-top: 16px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01: Remove theme-level vertical gap above white page panel === */
body.page-id-838 .ct-container-full,
body.page-id-838 .ct-container,
body.page-id-838 .site-main,
body.page-id-838 article,
body.page-id-838 .entry-content,
body.page-id-1598 .ct-container-full,
body.page-id-1598 .ct-container,
body.page-id-1598 .site-main,
body.page-id-1598 article,
body.page-id-1598 .entry-content,
body.page-id-67 .ct-container-full,
body.page-id-67 .ct-container,
body.page-id-67 .site-main,
body.page-id-67 article,
body.page-id-67 .entry-content,
body.page-id-1582 .ct-container-full,
body.page-id-1582 .ct-container,
body.page-id-1582 .site-main,
body.page-id-1582 article,
body.page-id-1582 .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-id-838 .entry-content,
body.page-id-1598 .entry-content,
body.page-id-67 .entry-content,
body.page-id-1582 .entry-content {
  padding-top: 18px !important;
}

body.page-id-838 .mw-home,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
body.page-id-1582 .mw-tools-root {
  padding-top: 18px !important;
  margin-top: 0 !important;
}

@media (max-width: 540px) {
  body.page-id-838 .entry-content,
  body.page-id-1598 .entry-content,
  body.page-id-67 .entry-content,
  body.page-id-1582 .entry-content,
  body.page-id-838 .mw-home,
  body.page-id-1598 .mw-lpf-root,
  body.page-id-67 .entry-content > div:first-child,
  body.page-id-1582 .mw-tools-root {
    padding-top: 14px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01: Home page emergency correction: collapse accumulated vertical spacing === */
body.home .ct-container-full,
body.home .ct-container,
body.home .site-main,
body.home article,
body.home .entry-content,
body.page-id-838 .ct-container-full,
body.page-id-838 .ct-container,
body.page-id-838 .site-main,
body.page-id-838 article,
body.page-id-838 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .entry-content > *:first-child,
body.home .mw-home,
body.home .mw-home-root,
body.home .mw-standard-root,
body.page-id-838 .entry-content > *:first-child,
body.page-id-838 .mw-home,
body.page-id-838 .mw-home-root,
body.page-id-838 .mw-standard-root {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .mw-home-hero,
body.home .mw-standard-header,
body.page-id-838 .mw-home-hero,
body.page-id-838 .mw-standard-header {
  margin-top: 0 !important;
}


/* --- WPWriter addition --- */


/* === 2026-07-01: Match Loan Program Finder to approved Tools spacing standard === */
body.page-id-1598 .ct-container-full,
body.page-id-1598 .ct-container,
body.page-id-1598 .site-main,
body.page-id-1598 article,
body.page-id-1598 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-id-1598 .entry-content {
  padding-top: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body.page-id-1598 .mw-lpf-root {
  margin-top: 0 !important;
  padding-top: 18px !important;
}

body.page-id-1598 .mw-lpf-intro {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

body.page-id-1598 .mw-lpf-card {
  margin-top: 0 !important;
}

@media (max-width: 540px) {
  body.page-id-1598 .mw-lpf-root {
    padding-top: 16px !important;
  }
  body.page-id-1598 .mw-lpf-intro {
    margin-bottom: 26px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01: LPF final spacing correction based on screenshot === */

/* 1) Collapse the gray band gap between site header and white body panel */
body.page-id-1598 .ct-container-full,
body.page-id-1598 .ct-container,
body.page-id-1598 .site-main,
body.page-id-1598 article,
body.page-id-1598 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 2) Remove nested white panel offset and make body panel start cleanly */
body.page-id-1598 .entry-content {
  padding: 0 20px 56px !important;
  background: #f7f9fc !important;
}

body.page-id-1598 .mw-lpf-root {
  max-width: 860px !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  margin: 0 auto !important;
  padding: 18px 30px 56px !important;
}

/* 3) Remove extra gray space between the title card and the white body panel */
body.page-id-1598 .mw-lpf-intro {
  margin: 0 0 30px !important;
}

body.page-id-1598 .mw-lpf-card {
  margin-top: 0 !important;
}

@media (max-width: 540px) {
  body.page-id-1598 .entry-content {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.page-id-1598 .mw-lpf-root {
    padding: 16px 18px 44px !important;
  }
  body.page-id-1598 .mw-lpf-intro {
    margin-bottom: 26px !important;
  }
}


/* --- WPWriter addition --- */


/* === 2026-07-01: Tools-approved standard layout for corrected pages ===
   Tools is the visual reference. This overrides the earlier spacing stack. */

/* Outer page background and theme container reset */
body.page-id-838 .ct-container-full,
body.page-id-838 .ct-container,
body.page-id-838 .site-main,
body.page-id-838 article,
body.page-id-838 .entry-content,
body.page-id-1598 .ct-container-full,
body.page-id-1598 .ct-container,
body.page-id-1598 .site-main,
body.page-id-1598 article,
body.page-id-1598 .entry-content,
body.page-id-67 .ct-container-full,
body.page-id-67 .ct-container,
body.page-id-67 .site-main,
body.page-id-67 article,
body.page-id-67 .entry-content,
body.page-id-1149 .ct-container-full,
body.page-id-1149 .ct-container,
body.page-id-1149 .site-main,
body.page-id-1149 article,
body.page-id-1149 .entry-content,
body.page-id-828 .ct-container-full,
body.page-id-828 .ct-container,
body.page-id-828 .site-main,
body.page-id-828 article,
body.page-id-828 .entry-content,
body.page-id-746 .ct-container-full,
body.page-id-746 .ct-container,
body.page-id-746 .site-main,
body.page-id-746 article,
body.page-id-746 .entry-content,
body.page-id-531 .ct-container-full,
body.page-id-531 .ct-container,
body.page-id-531 .site-main,
body.page-id-531 article,
body.page-id-531 .entry-content {
  background: #f7f9fc !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  box-shadow: none !important;
}

/* Tools-standard gray band: body panel starts 40px below site header */
body.page-id-838 .entry-content,
body.page-id-1598 .entry-content,
body.page-id-67 .entry-content,
body.page-id-1149 .entry-content,
body.page-id-828 .entry-content,
body.page-id-746 .entry-content,
body.page-id-531 .entry-content {
  padding: 40px 20px 56px !important;
}

/* White body panel */
body.page-id-838 .mw-home,
body.page-id-838 .mw-home-root,
body.page-id-838 .mw-standard-root,
body.page-id-838 .entry-content > div:first-child,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
body.page-id-1149 .entry-content > div:first-child,
body.page-id-828 .mw-roadmap.mw-hub-wrap,
body.page-id-746 .entry-content main,
body.page-id-746 .entry-content > main,
body.page-id-531 .entry-content > div:first-child,
body.page-id-531 .entry-content {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 18px 30px 56px !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  box-shadow: none !important;
}

/* Do not disturb Tools page itself except document the same approved geometry */
body.page-id-1582 .entry-content {
  background: #f7f9fc !important;
}
body.page-id-1582 .mw-tools-root {
  max-width: 860px !important;
}

/* Header cards: title block flush inside white panel, standard body gap */
body.page-id-838 .mw-home-hero,
body.page-id-838 .mw-standard-header,
body.page-id-1598 .mw-lpf-intro,
body.page-id-1598 .mw-lpf-hero,
body.page-id-1598 .mw-lpf-header,
body.page-id-67 .entry-content > div:first-child > h1:first-of-type,
body.page-id-1149 .mw-standard-header,
body.page-id-1149 .entry-content > div:first-child > h1:first-of-type,
body.page-id-828 .mw-roadmap .mw-hub-hero,
body.page-id-746 .mw-standard-header,
body.page-id-531 .mw-standard-header {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

/* Contact/reviews legacy split headers: if heading + paragraph, paragraph carries the gap */
body.page-id-67 .entry-content > div:first-child > h1:first-of-type,
body.page-id-1149 .entry-content > div:first-child > h1:first-of-type {
  margin-bottom: 6px !important;
}
body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p,
body.page-id-1149 .entry-content > div:first-child > h1:first-of-type + p {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

/* First content block must not add an extra gap */
body.page-id-838 .mw-home-hero + *,
body.page-id-838 .mw-standard-header + *,
body.page-id-1598 .mw-lpf-intro + *,
body.page-id-1598 .mw-lpf-hero + *,
body.page-id-1598 .mw-lpf-header + *,
body.page-id-828 .mw-roadmap .mw-hub-hero + *,
body.page-id-746 .mw-standard-header + *,
body.page-id-531 .mw-standard-header + * {
  margin-top: 0 !important;
}

@media (max-width: 540px) {
  body.page-id-838 .entry-content,
  body.page-id-1598 .entry-content,
  body.page-id-67 .entry-content,
  body.page-id-1149 .entry-content,
  body.page-id-828 .entry-content,
  body.page-id-746 .entry-content,
  body.page-id-531 .entry-content {
    padding: 30px 18px 44px !important;
  }
  body.page-id-838 .mw-home,
  body.page-id-838 .mw-home-root,
  body.page-id-838 .mw-standard-root,
  body.page-id-838 .entry-content > div:first-child,
  body.page-id-1598 .mw-lpf-root,
  body.page-id-67 .entry-content > div:first-child,
  body.page-id-1149 .entry-content > div:first-child,
  body.page-id-828 .mw-roadmap.mw-hub-wrap,
  body.page-id-746 .entry-content main,
  body.page-id-746 .entry-content > main,
  body.page-id-531 .entry-content > div:first-child,
  body.page-id-531 .entry-content {
    padding: 16px 18px 44px !important;
  }
  body.page-id-838 .mw-home-hero,
  body.page-id-838 .mw-standard-header,
  body.page-id-1598 .mw-lpf-intro,
  body.page-id-1598 .mw-lpf-hero,
  body.page-id-1598 .mw-lpf-header,
  body.page-id-67 .entry-content > div:first-child > h1:first-of-type + p,
  body.page-id-1149 .entry-content > div:first-child > h1:first-of-type + p,
  body.page-id-828 .mw-roadmap .mw-hub-hero,
  body.page-id-746 .mw-standard-header,
  body.page-id-531 .mw-standard-header {
    margin-bottom: 26px !important;
  }
}
