/* ============================================================================
   MICHAELSWOLFF.COM — CLEAN SITE CSS
   Date: 2026-07-07

   Notes:
   - Replaces the stacked WPWriter patch blocks with one organized stylesheet.
   - Keeps legacy mw-* classes where live pages still use them.
   - New pages should use the standard page system classes:
     .page-shell, .page-panel, .page-header, .page-label, .page-card,
     .page-cta, .page-actions, .page-button, .page-back
   - Existing mw-* aliases are retained for compatibility only.
============================================================================ */

/* ============================================================================
   00. DESIGN TOKENS
============================================================================ */
:root {
  --site-blue: #0a66c2;
  --site-blue-dark: #102a55;
  --site-blue-deep: #1e40af;
  --site-green: #16a34a;
  --site-green-dark: #15803d;
  --site-text: #1b1b1b;
  --site-text-dark: #0f172a;
  --site-muted: #475569;
  --site-muted-light: #64748b;
  --site-border: #e0e3ee;
  --site-border-light: #e6e8ec;
  --site-bg-soft: #f7f9fc;
  --site-bg-header: linear-gradient(180deg, #f4f8ff, #eef5ff);
  --site-bg-hero: linear-gradient(135deg, #102a55, #1e40af);
  --site-radius-sm: 8px;
  --site-radius-md: 14px;
  --site-radius-lg: 20px;
  --site-radius-pill: 999px;
  --site-shadow-soft: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06);
  --site-shadow-card: 0 1px 3px rgba(15,23,42,.06);
  --site-width-page: 800px;
  --site-width-panel: 860px;
  --site-width-wide: 1120px;
  --site-width-header: 1180px;
  --site-width-footer: 800px;
  --site-font: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================================
   01. GLOBAL BASE
============================================================================ */
html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--site-text);
  line-height: 1.65;
}

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

blockquote {
  border-left: 4px solid var(--site-border-light);
  padding-left: 12px;
  color: #424242;
  margin-left: 0;
}

.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;
}

/* ============================================================================
   02. HEADER / NAVIGATION
============================================================================ */
#header,
.site-header,
.ct-header,
.ct-header [data-row],
.ct-header [data-row] > div,
.ct-header [data-column],
.ct-header .ct-container,
.ct-header .ct-container-full,
.ct-header .ct-container-fluid,
[data-header*="type-1"],
[data-header*="type-1"] [data-row],
[data-header*="type-1"] [data-row] > div,
[data-header*="type-1"] .ct-container,
[data-header*="type-1"] .ct-container-full,
[data-header*="type-1"] .ct-container-fluid {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

.ct-header .ct-container,
.ct-header .ct-container-full,
.ct-header .ct-container-fluid,
.site-header .ct-container,
.site-header .ct-container-full,
#header .ct-container,
#header .ct-container-full,
header .ct-container,
header .ct-container-full {
  max-width: var(--site-width-header) !important;
  width: calc(100% - 32px) !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.ct-header [data-column="middle"],
.site-header [data-column="middle"] {
  justify-content: flex-start !important;
}

.ct-header nav,
.site-header nav {
  margin-left: 8px !important;
}

.ct-header .header-menu-1,
.site-header .header-menu-1,
#header .header-menu-1 {
  width: 100% !important;
  margin-left: 0 !important;
}

.ct-header .header-menu-1 ul.menu,
.site-header .header-menu-1 ul.menu,
#header .header-menu-1 ul.menu,
.ct-header nav ul,
.site-header nav ul {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 26px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.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: var(--site-green) !important;
  border: 2px solid var(--site-green) !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: var(--site-green-dark) !important;
  border-color: var(--site-green-dark) !important;
  color: #ffffff !important;
}

.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;
}

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

.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;
}

@media (max-width: 1100px) {
  .ct-header .header-menu-1 ul.menu,
  .site-header .header-menu-1 ul.menu,
  #header .header-menu-1 ul.menu,
  .ct-header nav ul,
  .site-header nav ul {
    gap: 18px !important;
  }

  #header .menu > li > a,
  .site-header .menu > li > a,
  .ct-header .menu > li > a {
    font-size: 12px !important;
  }
}

@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;
  }

  .ct-header .ct-container,
  .ct-header .ct-container-full,
  .ct-header .ct-container-fluid,
  .site-header .ct-container,
  .site-header .ct-container-full,
  #header .ct-container,
  #header .ct-container-full,
  header .ct-container,
  header .ct-container-full {
    width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ============================================================================
   03. STANDARD PAGE SYSTEM
============================================================================ */
body:has(.page-shell) .hero-section,
body:has(.page-shell) .entry-header,
body:has(.page-shell) .page-title,
body:has(.page-shell) h1.entry-title,
body:has(.page-shell) h1.wp-block-post-title,
body:has(.mw-page-shell) .hero-section,
body:has(.mw-page-shell) .entry-header,
body:has(.mw-page-shell) .page-title,
body:has(.mw-page-shell) h1.entry-title,
body:has(.mw-page-shell) h1.wp-block-post-title {
  display: none !important;
}

body:has(.page-shell) #main-container .site-main,
body:has(.page-shell) #main,
body:has(.page-shell) .site-main,
body:has(.mw-page-shell) #main-container .site-main,
body:has(.mw-page-shell) #main,
body:has(.mw-page-shell) .site-main {
  flex-grow: 0 !important;
  min-height: auto !important;
}

body:has(.page-shell) #main,
body:has(.page-shell) .site-main,
body:has(.page-shell) article,
body:has(.page-shell) .entry-content,
body:has(.page-shell) .ct-container,
body:has(.page-shell) .ct-container-full,
body:has(.mw-page-shell) #main,
body:has(.mw-page-shell) .site-main,
body:has(.mw-page-shell) article,
body:has(.mw-page-shell) .entry-content,
body:has(.mw-page-shell) .ct-container,
body:has(.mw-page-shell) .ct-container-full {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.page-shell,
.mw-page-shell,
.mw-home-layout-body,
.mw-about-body,
.mw-locations-body {
  background: var(--site-bg-soft) !important;
  padding: 14px 18px 24px !important;
  box-sizing: border-box !important;
}

.page-panel,
.mw-page-panel,
.mw-tools-root,
.mw-home-layout-panel,
.mw-about-panel,
.mw-locations-panel {
  max-width: var(--site-width-page) !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  font-family: var(--site-font) !important;
  color: var(--site-text) !important;
}

.page-header,
.standard-header,
.mw-standard-header,
.mw-page-header,
.mw-tools-header,
.mw-home-layout-header,
.mw-about-header,
.mw-locations-header {
  background: var(--site-bg-header) !important;
  border: 1px solid var(--site-border-light) !important;
  border-radius: var(--site-radius-md) !important;
  padding: 28px 28px 24px !important;
  margin: 0 0 24px !important;
  box-shadow: var(--site-shadow-soft) !important;
  color: var(--site-text) !important;
  text-align: left !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--site-font) !important;
}

.page-header h1,
.page-header h2,
.standard-header h1,
.standard-header h2,
.mw-standard-header h1,
.mw-standard-header h2,
.mw-page-header h1,
.mw-page-header h2,
.mw-tools-header h1,
.mw-tools-header h2,
.mw-home-layout-header h1,
.mw-about-header h1,
.mw-locations-header h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--site-text) !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.page-header p,
.standard-header p,
.mw-standard-header p,
.mw-page-header p,
.mw-tools-header p,
.mw-home-layout-header p,
.mw-about-header p,
.mw-locations-header p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
  text-align: left !important;
}

.page-label,
.mw-page-label,
.mw-tools-label,
.mw-home-layout-label,
.mw-about-label,
.mw-locations-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: #6c757d !important;
  margin: 24px 0 10px 2px !important;
  display: block !important;
}

.page-header .page-label,
.mw-page-header .mw-page-label {
  margin-top: 0 !important;
}

.page-actions,
.mw-page-actions,
.mw-home-layout-actions,
.mw-about-actions,
.mw-locations-actions,
.mw-tool-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 18px !important;
}

.page-grid,
.mw-page-grid {
  display: grid !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.page-grid.two,
.mw-page-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.page-card,
.page-cta,
.mw-page-card,
.mw-page-cta,
.mw-tool-card,
.mw-home-layout-card,
.mw-about-card,
.mw-locations-card,
.mw-home-layout-mini,
.mw-about-mini {
  background: #ffffff !important;
  border: 1px solid var(--site-border-light) !important;
  border-radius: 13px !important;
  padding: 22px 24px !important;
  box-shadow: none !important;
  margin-bottom: 14px !important;
}

.page-card h2,
.page-cta h2,
.mw-page-card h2,
.mw-page-cta h2 {
  font-size: 18px !important;
  margin: 0 0 8px !important;
  color: var(--site-blue-dark) !important;
  line-height: 1.35 !important;
}

.page-card p,
.page-cta p,
.mw-page-card p,
.mw-page-cta p {
  margin: 0 0 16px !important;
  color: #374151 !important;
  line-height: 1.6 !important;
  font-size: 15px !important;
}

.page-cta,
.mw-page-cta,
.cta,
.site-cta,
.standard-cta {
  border-left: 4px solid var(--site-blue) !important;
}

.page-resource-card,
.mw-page-resource-card {
  display: flex !important;
  gap: 18px !important;
  align-items: flex-start !important;
}

.page-resource-icon,
.mw-page-resource-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px !important;
  background: #eef5ff !important;
  border: 1px solid var(--site-border-light) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  flex-shrink: 0 !important;
}

.page-pill-row,
.mw-page-pill-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-bottom: 14px !important;
}

.page-pill,
.mw-page-pill {
  display: inline-flex !important;
  align-items: center !important;
  background: #f6f7f9 !important;
  border: 1px solid var(--site-border-light) !important;
  border-radius: 100px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  color: #374151 !important;
  font-weight: 500 !important;
}

.page-back,
.mw-page-back {
  font-family: var(--site-font) !important;
  font-size: .88rem !important;
  color: #6b7280 !important;
  margin-top: 32px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--site-border-light) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  text-align: center !important;
}

.page-back a,
.mw-page-back a {
  color: var(--site-blue) !important;
  text-decoration: none !important;
  font-weight: 650 !important;
  display: inline-block !important;
}

@media (max-width: 540px) {
  .page-shell,
  .mw-page-shell,
  .mw-home-layout-body,
  .mw-about-body,
  .mw-locations-body {
    padding: 18px !important;
  }

  .page-panel,
  .mw-page-panel,
  .mw-tools-root,
  .mw-home-layout-panel,
  .mw-about-panel,
  .mw-locations-panel {
    padding: 18px !important;
  }

  .page-header,
  .standard-header,
  .mw-standard-header,
  .mw-page-header,
  .mw-tools-header,
  .mw-home-layout-header,
  .mw-about-header,
  .mw-locations-header {
    padding: 20px 18px !important;
  }

  .page-grid.two,
  .mw-page-grid.two {
    grid-template-columns: 1fr !important;
  }

  .page-card,
  .page-cta,
  .mw-page-card,
  .mw-page-cta {
    padding: 18px !important;
  }

  .page-resource-card,
  .mw-page-resource-card {
    flex-direction: column !important;
  }

  .page-actions,
  .mw-page-actions,
  .mw-home-layout-actions,
  .mw-about-actions,
  .mw-locations-actions,
  .mw-tool-actions {
    flex-direction: column !important;
  }
}

/* ============================================================================
   04. BUTTONS / CTA
============================================================================ */
.button-primary,
.btn-primary,
.ask-button,
.hub-btn.primary,
.mw-hub-btn.primary,
.mw-nc-btn.primary,
.page-button,
.mw-page-button,
.mw-home-layout-button,
.mw-about-button,
.mw-locations-button,
.mw-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--site-blue) !important;
  color: #ffffff !important;
  border-radius: var(--site-radius-pill) !important;
  padding: 10px 18px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  line-height: 1 !important;
  border: 0 !important;
  text-shadow: none !important;
}

.button-secondary,
.hub-btn.secondary,
.mw-hub-btn.secondary,
.mw-nc-btn.secondary,
.page-button.secondary,
.mw-page-button.secondary,
.mw-home-layout-button.secondary,
.mw-about-button.secondary,
.mw-locations-button.secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f6f7f9 !important;
  color: var(--site-blue) !important;
  border: 1px solid #d6dfef !important;
  border-radius: var(--site-radius-pill) !important;
  padding: 10px 18px !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

.mw-tool-btn {
  color: #ffff00 !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  padding: 9px 15px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
}

.cta,
.site-cta,
.standard-cta {
  background: #ffffff !important;
  color: var(--site-text-dark) !important;
  border: 1px solid var(--site-border) !important;
  border-left: 4px solid var(--site-blue) !important;
  border-radius: 10px !important;
  padding: 22px 24px !important;
  box-shadow: var(--site-shadow-card) !important;
}

.cta a,
.site-cta a,
.standard-cta a {
  color: var(--site-blue) !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-shadow: none !important;
}

/* ============================================================================
   05. HUB / CARD SYSTEM
============================================================================ */
.site-page,
.page-container,
.content-container,
.mw-page-container {
  max-width: var(--site-width-page) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  font-family: var(--site-font) !important;
  color: var(--site-text) !important;
  line-height: 1.65 !important;
}

.site-wide,
.wide-container,
.hub-wrap,
.mw-hub-wrap,
.mw-nc-wrap {
  max-width: var(--site-width-wide);
  margin: 0 auto;
  padding: 24px 18px 54px;
  font-family: var(--site-font);
  color: var(--site-text-dark);
}

.no-theme-title .entry-header,
.no-theme-title .page-title,
.no-theme-title .ct-title-label,
.no-theme-title .hero-section,
.no-theme-title .post-title,
.no-theme-title .entry-title,
body:has(.hub-wrap) .entry-header,
body:has(.hub-wrap) .page-title,
body:has(.hub-wrap) .ct-title-label,
body:has(.hub-wrap) .hero-section,
body:has(.hub-wrap) .post-title,
body:has(.hub-wrap) .entry-title,
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;
}

.no-top-space .ct-container-full,
.no-top-space .site-main,
.no-top-space article,
.no-top-space .entry-content,
.no-top-space .hero-section,
body:has(.hub-wrap) .site-main,
body:has(.hub-wrap) .entry-content,
body:has(.mw-hub-wrap) .site-main,
body:has(.mw-hub-wrap) .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.hub-hero,
.mw-hub-hero,
.mw-nc-hero {
  background: var(--site-bg-hero);
  color: #fff;
  border-radius: var(--site-radius-lg);
  padding: 44px 38px;
  margin-bottom: 34px;
}

.hub-hero h1,
.mw-hub-hero h1,
.mw-nc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}

.hub-hero p,
.mw-hub-hero p,
.mw-nc-hero p {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: #e0ecff;
}

.hub-actions,
.mw-hub-actions,
.mw-nc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hub-section,
.mw-hub-section,
.mw-nc-section {
  margin: 36px 0;
}

.hub-eyebrow,
.mw-hub-eyebrow,
.mw-nc-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--site-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-region-grid,
.mw-hub-region-grid,
.mw-nc-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-mini-grid,
.mw-hub-mini-grid,
.mw-nc-city-grid,
.mw-nc-loan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hub-mini-grid.three,
.mw-hub-mini-grid.three,
.mw-nc-bases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-card,
.hub-mini-card,
.mw-hub-card,
.mw-hub-mini-card,
.mw-nc-region-card,
.mw-nc-city-card,
.mw-nc-base-card,
.mw-nc-loan-card,
.state-card {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}

.hub-card,
.mw-hub-card,
.mw-nc-region-card,
.state-card {
  border-radius: 18px;
  padding: 24px;
}

.hub-card:hover,
.mw-hub-card:hover,
.mw-nc-region-card:hover,
.state-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
}

.equal-cards .hub-card,
.equal-cards .hub-mini-card,
.mw-hub-equal-cards .mw-hub-card,
.mw-hub-equal-cards .mw-hub-mini-card,
.mw-hub-region-grid .mw-hub-card,
.mw-hub-mini-grid .mw-hub-mini-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

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

.hub-pill-list,
.mw-hub-pill-list,
.mw-nc-town-list,
.city-pipes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
  align-items: center;
}

.hub-pill,
.mw-hub-pill,
.mw-nc-town {
  background: var(--site-bg-soft);
  border: 1px solid var(--site-border);
  color: #334155;
  border-radius: var(--site-radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hub-cta,
.mw-hub-cta,
.mw-nc-cta {
  background: #fff;
  border-left: 4px solid var(--site-blue);
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: var(--site-shadow-card);
  margin-top: 34px;
}

.state-difference-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.city-pipes a {
  color: var(--site-blue);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.city-pipes a:hover { color: #054a8b; }

@media (max-width: 980px) {
  .hub-region-grid,
  .hub-mini-grid,
  .hub-mini-grid.three,
  .mw-hub-region-grid,
  .mw-hub-mini-grid,
  .mw-hub-mini-grid.three,
  .mw-nc-region-grid,
  .mw-nc-bases,
  .mw-nc-city-grid,
  .mw-nc-loan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hub-hero,
  .mw-hub-hero,
  .mw-nc-hero { padding: 30px 22px; }

  .hub-region-grid,
  .hub-mini-grid,
  .hub-mini-grid.three,
  .mw-hub-region-grid,
  .mw-hub-mini-grid,
  .mw-hub-mini-grid.three,
  .mw-nc-region-grid,
  .mw-nc-bases,
  .mw-nc-city-grid,
  .mw-nc-loan-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   06. FAQ SYSTEM
============================================================================ */
.faq,
.mw-faq,
body .mw-rate-faq.mw-lpf-faq {
  margin: 32px 0 0 !important;
  max-width: 100% !important;
}

.faq-item,
.mw-faq-item,
body .mw-rate-faq .mw-lpf-faq-item {
  border-bottom: 1px solid var(--site-border) !important;
}

.faq-item:last-child,
.mw-faq-item:last-child,
body .mw-rate-faq .mw-lpf-faq-item:last-child {
  border-bottom: none !important;
}

.faq-question,
.mw-faq-question,
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;
}

.faq-question::after,
.mw-faq-question::after,
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: var(--site-blue) !important;
  line-height: 1 !important;
}

.faq-item.open .faq-question::after,
.faq-item.mw-open .faq-question::after,
.mw-faq-item.mw-open .mw-faq-question::after,
body .mw-rate-faq .mw-lpf-faq-item.mw-open .mw-lpf-faq-q::after {
  content: '\2212' !important;
}

.faq-answer,
.mw-faq-answer,
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;
}

.faq-item.open .faq-answer,
.faq-item.mw-open .faq-answer,
.mw-faq-item.mw-open .mw-faq-answer,
body .mw-rate-faq .mw-lpf-faq-item.mw-open .mw-lpf-faq-a {
  padding: 0 0 16px 0 !important;
  max-height: 700px !important;
}

.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;
}

/* ============================================================================
   07. PAGE-SPECIFIC LEGACY COMPATIBILITY
   Keep only until affected pages are migrated to the standard page classes.
============================================================================ */
.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,
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,
body.page-id-1532 .entry-header,
body.page-id-1532 .page-title,
body.page-id-1532 h1.entry-title,
body.page-id-1533 .entry-header,
body.page-id-1533 .page-title,
body.page-id-1533 h1.entry-title,
body.page-id-1598 .entry-header,
body.page-id-1598 .page-title,
body.page-id-1598 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,
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,
body.page-id-67 .entry-header,
body.page-id-67 .page-title,
body.page-id-67 h1.entry-title,
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,
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,
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;
  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,
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,
body.page-id-1532 .entry-content,
body.page-id-2000 .entry-content,
body.page-id-67 .entry-content,
body.page-id-1598 .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;
}

.hero-section:not(:has(.page-title:not([style*="display:none"]))) {
  display: none !important;
}

.ct-container-full {
  padding-top: 20px !important;
}

.hide-title,
body.hide-title {
  border: 0 !important;
  outline: 0 !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;
}

.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;
}

body.page-id-1582 .site-main,
body.page-id-1582 main,
body.page-id-1598 .site-main,
body.page-id-1598 main,
body.page-id-67 .site-main,
body.page-id-67 main,
body.page-id-838 .site-main,
body.page-id-838 main,
body.page-id-1149 .site-main,
body.page-id-1149 main,
body.page-id-828 .site-main,
body.page-id-828 main,
body.page-id-746 .site-main,
body.page-id-746 main,
body.page-id-531 .site-main,
body.page-id-531 main {
  background: var(--site-bg-soft) !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page-id-1582 article,
body.page-id-1598 article,
body.page-id-67 article,
body.page-id-838 article,
body.page-id-1149 article,
body.page-id-828 article,
body.page-id-746 article,
body.page-id-531 article {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-1582 .entry-content,
body.page-id-1598 .entry-content,
body.page-id-67 .entry-content,
body.page-id-838 .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 {
  background: #ffffff !important;
  max-width: var(--site-width-panel) !important;
  margin: 0 auto !important;
  padding: 24px 30px 34px !important;
  border: 1px solid #eef1f5 !important;
  box-shadow: none !important;
}

body.page-id-1582 .mw-tools-root,
body.page-id-1598 .mw-lpf-root,
body.page-id-67 .entry-content > div:first-child,
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-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 {
  max-width: var(--site-width-page) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.page-id-1582 .mw-tools-header,
body.page-id-1598 .mw-lpf-intro,
body.page-id-838 .mw-home-hero,
body.page-id-838 .mw-standard-header,
body.page-id-1149 .mw-standard-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: 24px !important;
}

body.page-id-1598 .mw-lpf-title,
body.page-id-838 .mw-home-hero .mw-hub-headline,
body.page-id-828 .mw-roadmap .mw-hub-hero h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--site-text) !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,
body.page-id-838 .mw-home-hero .mw-hub-sub,
body.page-id-828 .mw-roadmap .mw-hub-hero p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  max-width: none !important;
  text-align: left !important;
}

body.page-id-2000 .mw-articles-search input[type="text"],
body.page-id-2000 .mw-articles-search input[type="search"] {
  background: #ffffff !important;
  color: var(--site-text-dark) !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: var(--site-muted-light) !important;
  opacity: 1 !important;
}

body.page-id-531 .toc,
body.page-id-746 .toc,
body.page-id-531 .cta,
body.page-id-746 .cta,
body.page-id-531 .qa-start,
body.page-id-531 .ask-panel,
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;
  border-color: var(--site-border) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
}

body.page-id-531 h2,
body.page-id-746 h2,
body.page-id-531 h3,
body.page-id-746 h3 {
  color: var(--site-blue-dark) !important;
}

body.page-id-746 figure.page-hero,
body.page-id-746 .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,
body.page-id-531 .hide-title {
  display: none !important;
}

@media (max-width: 540px) {
  body.page-id-1582 .site-main,
  body.page-id-1582 main,
  body.page-id-1598 .site-main,
  body.page-id-1598 main,
  body.page-id-67 .site-main,
  body.page-id-67 main,
  body.page-id-838 .site-main,
  body.page-id-838 main,
  body.page-id-1149 .site-main,
  body.page-id-1149 main,
  body.page-id-828 .site-main,
  body.page-id-828 main,
  body.page-id-746 .site-main,
  body.page-id-746 main,
  body.page-id-531 .site-main,
  body.page-id-531 main {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body.page-id-1582 .entry-content,
  body.page-id-1598 .entry-content,
  body.page-id-67 .entry-content,
  body.page-id-838 .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: 18px 18px 28px !important;
  }
}

/* ============================================================================
   08. FOOTER
============================================================================ */
#footer,
#footer .ct-footer,
.ct-footer,
.ct-footer[data-id="type-1"] {
  background: #ffffff !important;
  border-top: 1px solid var(--site-border-light) !important;
}

#footer .ct-container,
#footer .ct-container-full,
.ct-footer .ct-container,
.ct-footer .ct-container-full {
  max-width: var(--site-width-footer) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.footer-legal {
  width: 100% !important;
  max-width: var(--site-width-footer) !important;
  margin: 0 auto !important;
  padding: 12px 0 16px !important;
  display: grid !important;
  grid-template-columns: 1fr 42px !important;
  align-items: center !important;
  column-gap: 24px !important;
  box-sizing: border-box !important;
}

.footer-license {
  text-align: left !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  color: var(--site-muted-light) !important;
}

.footer-license div { margin: 0 !important; }

.footer-license strong {
  color: #1e3656 !important;
  font-weight: 650 !important;
}

.footer-logo {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.footer-logo img {
  display: block !important;
  width: 34px !important;
  max-width: 34px !important;
  height: auto !important;
  margin: 0 !important;
}

#footer .ct-footer::before,
#footer .ct-footer::after,
.ct-footer::before,
.ct-footer::after,
.ct-footer[data-id="type-1"]::before,
.ct-footer[data-id="type-1"]::after,
.ct-footer [data-column="ghost"] {
  content: none !important;
  display: none !important;
}

@media (max-width: 700px) {
  #footer .ct-container,
  #footer .ct-container-full,
  .ct-footer .ct-container,
  .ct-footer .ct-container-full {
    padding: 0 18px !important;
  }

  .footer-legal {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }

  .footer-logo {
    justify-content: flex-start !important;
  }
}


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


/* === Standard page format fixes — 2026-07-07 ===
   Applies the template shell to current core pages while old page markup is migrated.
*/
body:has(.mw-page-shell) #main-container .site-main,
body:has(.mw-page-shell) #main,
body:has(.mw-page-shell) .site-main {
  flex-grow: 0 !important;
  min-height: auto !important;
}

body:has(.mw-page-shell) .hero-section,
body:has(.mw-page-shell) .entry-header,
body:has(.mw-page-shell) .page-title,
body:has(.mw-page-shell) h1.entry-title,
body:has(.mw-page-shell) h1.wp-block-post-title {
  display: none !important;
}

.mw-page-back,
.mw-home-layout-back,
.mw-locations-back,
.mw-back-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  text-align: center !important;
  margin-top: 32px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e6e8ec !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: .88rem !important;
  color: #6b7280 !important;
}

.mw-page-back a,
.mw-home-layout-back a,
.mw-locations-back a,
.mw-back-link a {
  color: #0a66c2 !important;
  text-decoration: none !important;
  font-weight: 650 !important;
}

/* Contact page: force old inline content into the standard panel lane. */
body.page-id-67 .mw-page-panel > hr,
body.page-id-67 .mw-page-panel > h2,
body.page-id-67 .mw-page-panel > p,
body.page-id-67 .mw-page-panel > div:not(.mw-page-header) {
  max-width: 100% !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
}

/* Articles page: neutralize old full-width/landing-page styling inside standard panel. */
body.page-id-2000 .mw-articles-wrapper {
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.page-id-2000 .mw-articles-hero,
body.page-id-2000 .mw-articles-section,
body.page-id-2000 .mw-articles-footer {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 24px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

body.page-id-2000 .mw-articles-section > div,
body.page-id-2000 .mw-articles-hero > div,
body.page-id-2000 .mw-articles-footer > div {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Loan finder: keep quiz inside the template-width content lane. */
body.page-id-1598 .mw-lpf-root {
  max-width: 800px !important;
  margin: 0 auto !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;
  line-height: 1.3 !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;
}


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


/* === Template application: Tools + Loan Finder — 2026-07-08 === */
body.page-id-1582 .hero-section,
body.page-id-1582 .entry-header,
body.page-id-1582 .page-title,
body.page-id-1582 h1.entry-title,
body.page-id-1598 .hero-section,
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-1582 #main-container .site-main,
body.page-id-1582 #main,
body.page-id-1582 .site-main,
body.page-id-1598 #main-container .site-main,
body.page-id-1598 #main,
body.page-id-1598 .site-main {
  flex-grow: 0 !important;
  min-height: auto !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-1582 article,
body.page-id-1582 .entry-content,
body.page-id-1582 .ct-container,
body.page-id-1582 .ct-container-full,
body.page-id-1598 article,
body.page-id-1598 .entry-content,
body.page-id-1598 .ct-container,
body.page-id-1598 .ct-container-full {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-id-1582 .mw-page-shell,
body.page-id-1598 .mw-page-shell {
  background: #f7f9fc !important;
  padding: 14px 18px 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

body.page-id-1582 .mw-page-panel,
body.page-id-1598 .mw-page-panel {
  max-width: 800px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
}

body.page-id-1582 .mw-page-header,
body.page-id-1582 .mw-tools-header,
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;
  color: #1b1b1b !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.page-id-1582 .mw-tools-header h2,
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-1582 .mw-tools-header p,
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;
}

body.page-id-1598 .mw-lpf-root {
  max-width: 100% !important;
  margin: 0 !important;
}

body.page-id-1598 .mw-lpf-card,
body.page-id-1598 .mw-lpf-explainer,
body.page-id-1598 .mw-lpf-faq {
  max-width: 100% !important;
}

@media (max-width: 540px) {
  body.page-id-1582 .mw-page-shell,
  body.page-id-1598 .mw-page-shell {
    padding: 18px !important;
  }

  body.page-id-1582 .mw-page-panel,
  body.page-id-1598 .mw-page-panel {
    padding: 18px !important;
  }

  body.page-id-1582 .mw-page-header,
  body.page-id-1582 .mw-tools-header,
  body.page-id-1598 .mw-lpf-intro {
    padding: 20px 18px !important;
  }
}


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


/* === Template application: Contact — 2026-07-08 === */
body.page-id-67 .hero-section,
body.page-id-67 .entry-header,
body.page-id-67 .page-title,
body.page-id-67 h1.entry-title,
body.page-id-67 h1.wp-block-post-title {
  display: none !important;
}

body.page-id-67 #main-container .site-main,
body.page-id-67 #main,
body.page-id-67 .site-main {
  flex-grow: 0 !important;
  min-height: auto !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-67 article,
body.page-id-67 .entry-content,
body.page-id-67 .ct-container,
body.page-id-67 .ct-container-full {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-id-67 .mw-page-shell {
  background: #f7f9fc !important;
  padding: 14px 18px 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

body.page-id-67 .mw-page-panel {
  max-width: 800px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
}

body.page-id-67 .mw-page-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;
  box-sizing: border-box !important;
}

body.page-id-67 .mw-page-header 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-67 .mw-page-header p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
  text-align: left !important;
}

body.page-id-67 .mw-page-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 16px !important;
}

body.page-id-67 .mw-page-button {
  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;
  font-size: 13px !important;
  line-height: 1 !important;
}

body.page-id-67 .mw-page-button.secondary {
  background: #f6f7f9 !important;
  color: #0a66c2 !important;
  border: 1px solid #d6dfef !important;
}

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

@media (max-width: 540px) {
  body.page-id-67 .mw-page-shell {
    padding: 18px !important;
  }

  body.page-id-67 .mw-page-panel {
    padding: 18px !important;
  }

  body.page-id-67 .mw-page-header {
    padding: 20px 18px !important;
  }

  body.page-id-67 .mw-page-actions {
    flex-direction: column !important;
  }
}


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


/* === Template application: Articles — 2026-07-08 === */
body.page-id-2000 .hero-section,
body.page-id-2000 .entry-header,
body.page-id-2000 .page-title,
body.page-id-2000 h1.entry-title,
body.page-id-2000 h1.wp-block-post-title {
  display: none !important;
}

body.page-id-2000 #main-container .site-main,
body.page-id-2000 #main,
body.page-id-2000 .site-main {
  flex-grow: 0 !important;
  min-height: auto !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-2000 article,
body.page-id-2000 .entry-content,
body.page-id-2000 .ct-container,
body.page-id-2000 .ct-container-full {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-id-2000 .mw-page-shell {
  background: #f7f9fc !important;
  padding: 14px 18px 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

body.page-id-2000 .mw-page-panel {
  max-width: 800px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
}

body.page-id-2000 .mw-articles-titlebox,
body.page-id-2000 .mw-page-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;
  box-sizing: border-box !important;
}

body.page-id-2000 .mw-page-header h1,
body.page-id-2000 .mw-articles-titlebox 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-2000 .mw-page-header p,
body.page-id-2000 .mw-articles-titlebox p {
  font-size: 14px !important;
  color: #374151 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  max-width: 100% !important;
  text-align: left !important;
}

body.page-id-2000 .mw-articles-search {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 16px !important;
  max-width: 100% !important;
}

body.page-id-2000 .mw-articles-search input {
  flex: 1 1 260px !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
  border: 1px solid #d6dfef !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #1b1b1b !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}

body.page-id-2000 .mw-articles-search button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  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;
  font-size: 13px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

body.page-id-2000 .mw-articles-section,
body.page-id-2000 .mw-articles-footer {
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #374151 !important;
  box-sizing: border-box !important;
}

body.page-id-2000 .mw-articles-section > div,
body.page-id-2000 .mw-articles-footer > div {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page-id-2000 .mw-articles-section h2 {
  font-size: 18px !important;
  margin: 0 0 10px !important;
  color: #102a55 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

body.page-id-2000 .mw-articles-section p {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #374151 !important;
}

body.page-id-2000 .mw-articles-section > div > div,
body.page-id-2000 .mw-articles-footer,
body.page-id-2000 .mw-articles-footer > div {
  border-radius: 13px !important;
}

@media (max-width: 540px) {
  body.page-id-2000 .mw-page-shell {
    padding: 18px !important;
  }

  body.page-id-2000 .mw-page-panel {
    padding: 18px !important;
  }

  body.page-id-2000 .mw-page-header,
  body.page-id-2000 .mw-articles-titlebox {
    padding: 20px 18px !important;
  }

  body.page-id-2000 .mw-articles-search {
    flex-direction: column !important;
  }
}


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


/* === Template migration overrides: VA NC, Raleigh Q&A, Raleigh Roadmap — 2026-07-08 === */
body.page-id-746 #main-container .site-main,
body.page-id-746 #main,
body.page-id-746 .site-main,
body.page-id-531 #main-container .site-main,
body.page-id-531 #main,
body.page-id-531 .site-main,
body.page-id-828 #main-container .site-main,
body.page-id-828 #main,
body.page-id-828 .site-main {
  flex-grow: 0 !important;
  min-height: auto !important;
  background: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-746 article,
body.page-id-746 .entry-content,
body.page-id-746 .ct-container,
body.page-id-746 .ct-container-full,
body.page-id-531 article,
body.page-id-531 .entry-content,
body.page-id-531 .ct-container,
body.page-id-531 .ct-container-full,
body.page-id-828 article,
body.page-id-828 .entry-content,
body.page-id-828 .ct-container,
body.page-id-828 .ct-container-full {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.page-id-746 .mw-page-shell,
body.page-id-531 .mw-page-shell,
body.page-id-828 .mw-page-shell {
  background: #f7f9fc !important;
  padding: 14px 18px 24px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

body.page-id-746 .mw-page-panel,
body.page-id-531 .mw-page-panel,
body.page-id-828 .mw-page-panel {
  max-width: 800px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #eef1f5 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #1b1b1b !important;
}

body.page-id-746 .mw-page-header,
body.page-id-531 .mw-page-header,
body.page-id-828 .mw-page-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;
  box-sizing: border-box !important;
}

body.page-id-746 .mw-page-header h1,
body.page-id-531 .mw-page-header h1,
body.page-id-828 .mw-page-header 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-746 .mw-page-header p,
body.page-id-531 .mw-page-header p,
body.page-id-828 .mw-page-header p {
  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-746 .mw-page-shell,
  body.page-id-531 .mw-page-shell,
  body.page-id-828 .mw-page-shell { padding: 18px !important; }

  body.page-id-746 .mw-page-panel,
  body.page-id-531 .mw-page-panel,
  body.page-id-828 .mw-page-panel { padding: 18px !important; }

  body.page-id-746 .mw-page-header,
  body.page-id-531 .mw-page-header,
  body.page-id-828 .mw-page-header { padding: 20px 18px !important; }
}


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


/* ============================================================================
   09. BLOG POST TEMPLATE COMPONENTS — FAQ / CTA / DISCLAIMER
   Added: 2026-07-08
   Purpose: Normalize blog post FAQ, CTA, and disclaimer styling across legacy posts.
============================================================================ */

body.single-post .entry-content .faq.is-collapsible {
  background: #f6f7f9 !important;
  border: 1px solid #e0e3ee !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin: 28px 0 !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.04) !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-item {
  border-bottom: 1px solid #e0e3ee !important;
  margin: 0 !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-item:last-child {
  border-bottom: 0 !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-q {
  width: 100% !important;
  display: block !important;
  background: #ffffff !important;
  border: 0 !important;
  color: #0a66c2 !important;
  cursor: pointer !important;
  font-family: var(--site-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 16px 44px 16px 18px !important;
  position: relative !important;
  text-align: left !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-q::after {
  content: '+' !important;
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #0a66c2 !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-item.is-open .faq-q::after,
body.single-post .entry-content .faq.is-collapsible .faq-q[aria-expanded="true"]::after {
  content: '\2212' !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-a {
  background: #f6f7f9 !important;
  color: #374151 !important;
  font-family: var(--site-font) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  padding: 0 18px 16px !important;
}

body.single-post .entry-content .faq.is-collapsible .faq-a p:last-child {
  margin-bottom: 0 !important;
}

body.single-post .entry-content .cta-block,
body.single-post .entry-content .blog-cta,
body.single-post .entry-content .post-cta {
  background: #ffffff !important;
  border: 1px solid #e0e3ee !important;
  border-left: 5px solid #0a66c2 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.06) !important;
  color: #0f172a !important;
  margin: 30px 0 !important;
  padding: 22px 24px !important;
}

body.single-post .entry-content .cta-block p,
body.single-post .entry-content .blog-cta p,
body.single-post .entry-content .post-cta p {
  color: #0f172a !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 0 14px !important;
}

body.single-post .entry-content .cta-block p:first-child,
body.single-post .entry-content .blog-cta p:first-child,
body.single-post .entry-content .post-cta p:first-child {
  font-weight: 700 !important;
}

body.single-post .entry-content .cta-block a,
body.single-post .entry-content .blog-cta a,
body.single-post .entry-content .post-cta a {
  background: #0a66c2 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  padding: 11px 22px !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body.single-post .entry-content .post-disclaimer,
body.single-post .entry-content .mw-disclaimer,
body.single-post .entry-content .blog-disclaimer {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 4px solid #64748b !important;
  border-radius: 10px !important;
  color: #475569 !important;
  font-family: var(--site-font) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  margin: 24px 0 !important;
  padding: 14px 16px !important;
}

body.single-post .entry-content .post-disclaimer strong,
body.single-post .entry-content .mw-disclaimer strong,
body.single-post .entry-content .blog-disclaimer strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

body.single-post .entry-content .post-disclaimer a,
body.single-post .entry-content .mw-disclaimer a,
body.single-post .entry-content .blog-disclaimer a {
  color: #0a66c2 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}


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


/* Blog disclaimer legacy alias — 2026-07-08 */
body.single-post .entry-content .mortgage-disclaimer {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 4px solid #64748b !important;
  border-radius: 10px !important;
  color: #475569 !important;
  display: block !important;
  font-family: var(--site-font) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  margin: 24px 0 !important;
  padding: 14px 16px !important;
}

body.single-post .entry-content .mortgage-disclaimer strong,
body.single-post .entry-content .mortgage-disclaimer a {
  color: #0a66c2 !important;
  font-weight: 700 !important;
}


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


/* ============================================================================
   Single post cleanup: Raleigh payment calculator gap — post ID 632
   Added: 2026-07-08
============================================================================ */
body.single-post.postid-632 #main,
body.single-post.postid-632 .site-main,
body.single-post.postid-632 main.site-main {
  background: #f7f9fc !important;
  padding: 24px 18px !important;
}

body.single-post.postid-632 article,
body.single-post.postid-632 .entry-content {
  background: #ffffff !important;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border: 1px solid #eef1f5 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body.single-post.postid-632 .entry-content {
  padding: 28px 30px 36px !important;
  font-family: var(--site-font) !important;
  color: #1b1b1b !important;
}

body.single-post.postid-632 .entry-content > main,
body.single-post.postid-632 .entry-content main {
  max-width: 800px !important;
  margin: 0 auto !important;
}

body.single-post.postid-632 .toc {
  background: #f6f7f9 !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 12px !important;
  padding: 18px 22px !important;
  margin: 24px 0 30px !important;
}

body.single-post.postid-632 .faq.is-collapsible {
  margin: 30px 0 22px !important;
}

body.single-post.postid-632 .faq.is-collapsible > h2 {
  background: #ffffff !important;
  border-bottom: 1px solid #e0e3ee !important;
  color: #0f172a !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 14px 18px !important;
}

body.single-post.postid-632 .faq.is-collapsible .faq-q {
  padding-top: 13px !important;
  padding-bottom: 13px !important;
}

body.single-post.postid-632 .cta {
  background: #f6f7f9 !important;
  border: 1px solid #e0e3ee !important;
  border-left: 5px solid #0a66c2 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.06) !important;
  color: #0f172a !important;
  margin: 30px 0 0 !important;
  padding: 24px 26px !important;
}

body.single-post.postid-632 .cta h3 {
  color: #0f172a !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  margin: 0 0 10px !important;
}

body.single-post.postid-632 .cta p {
  color: #374151 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 0 16px !important;
}

body.single-post.postid-632 .cta .btn-primary,
body.single-post.postid-632 .cta a.btn-primary {
  background: #0a66c2 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-weight: 750 !important;
  padding: 11px 22px !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

body.single-post.postid-632 .cta .cta-note,
body.single-post.postid-632 .cta .cta-note a {
  color: #475569 !important;
  font-size: 13px !important;
}

body.single-post.postid-632 .payment-scenario-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 24px 0 22px !important;
}

body.single-post.postid-632 .payment-scenario-card {
  background: #ffffff !important;
  border: 1px solid #e0e3ee !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.05) !important;
  padding: 18px !important;
}

body.single-post.postid-632 .payment-scenario-label {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .09em !important;
  line-height: 1 !important;
  margin: 0 0 8px !important;
  text-transform: uppercase !important;
}

body.single-post.postid-632 .payment-scenario-card h3 {
  color: #102a55 !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  margin: 0 0 4px !important;
}

body.single-post.postid-632 .payment-scenario-sub {
  color: #64748b !important;
  font-size: 13px !important;
  margin: 0 0 14px !important;
}

body.single-post.postid-632 .payment-line,
body.single-post.postid-632 .payment-total {
  align-items: center !important;
  border-top: 1px solid #eef1f5 !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 9px 0 !important;
}

body.single-post.postid-632 .payment-line span,
body.single-post.postid-632 .payment-line strong {
  color: #374151 !important;
  font-size: 13.5px !important;
}

body.single-post.postid-632 .payment-total {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 10px !important;
  margin-top: 10px !important;
  padding: 13px 14px !important;
}

body.single-post.postid-632 .payment-total span {
  color: #1e3a8a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body.single-post.postid-632 .payment-total strong {
  color: #102a55 !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
}

@media (max-width: 700px) {
  body.single-post.postid-632 #main,
  body.single-post.postid-632 .site-main,
  body.single-post.postid-632 main.site-main {
    padding: 18px !important;
  }

  body.single-post.postid-632 .entry-content {
    padding: 20px 18px 28px !important;
  }

  body.single-post.postid-632 .payment-scenario-grid {
    grid-template-columns: 1fr !important;
  }
}


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


/* Post 632 title box — page-template style */
body.single-post.postid-632 .entry-header,
body.single-post.postid-632 .page-title,
body.single-post.postid-632 h1.entry-title,
body.single-post.postid-632 .ct-title-label,
body.single-post.postid-632 .hero-section {
  display: none !important;
}

body.single-post.postid-632 .post-template-title-box {
  background: linear-gradient(180deg, #f4f8ff, #eef5ff) !important;
  border: 1px solid #e6e8ec !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 0 rgba(10,102,194,.05), 0 6px 18px rgba(10,102,194,.06) !important;
  box-sizing: border-box !important;
  color: #1b1b1b !important;
  margin: 0 0 24px !important;
  padding: 28px 28px 24px !important;
  text-align: left !important;
}

body.single-post.postid-632 .post-template-title-box .post-template-label {
  color: #6c757d !important;
  display: block !important;
  font-family: var(--site-font) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  line-height: 1 !important;
  margin: 0 0 10px !important;
  text-transform: uppercase !important;
}

body.single-post.postid-632 .post-template-title-box h1 {
  color: #1b1b1b !important;
  font-family: var(--site-font) !important;
  font-size: 24px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
  text-align: left !important;
}

body.single-post.postid-632 .post-template-title-box .post-template-meta {
  color: #64748b !important;
  font-family: var(--site-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0 0 12px !important;
}

body.single-post.postid-632 .post-template-title-box p:last-child {
  color: #374151 !important;
  font-family: var(--site-font) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

@media (max-width: 540px) {
  body.single-post.postid-632 .post-template-title-box {
    padding: 20px 18px !important;
  }

  body.single-post.postid-632 .post-template-title-box h1 {
    font-size: 22px !important;
  }
}

/* Mortgage Calculators page */
/* Mortgage Calculators page */
.page-id-1680 article {
  --theme-boxed-content-spacing: 0px !important;
}

/* White page panel */
.page-id-1680 article.post-1680 {
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove Blocksy/Gutenberg inner width constraint */
.page-id-1680 .entry-content,
.page-id-1680 .entry-content > *,
.page-id-1680 .entry-content .wp-block-html {
  max-width: none !important;
  width: 100% !important;
}

/* Content spacing */
.page-id-1680 .entry-content {
  padding-top: 12px !important;
}

/* Remove theme container side padding */
.page-id-1680 .ct-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Calculator wrapper inside white panel */
.page-id-1680 .mw-page-panel {
  max-width: 1000px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* Calculator hub */
.page-id-1680 .mw-calc-hub {
  max-width: 1000px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}



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


/* === Calculator template alignment: Cost of Waiting — 2026-07-09 === */
body.page-id-2260 .entry-title,
body.page-id-2260 .page-title,
body.page-id-2260 h1.wp-block-post-title,
body.page-id-2260 .hero-section,
body.page-id-2260 .entry-header {
  display: none !important;
}

body.page-id-2260 {
  overflow-x: hidden !important;
}

body.page-id-2260 .site-main,
body.page-id-2260 .ct-container-full {
  background: #f3f4f6 !important;
}

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

body.page-id-2260 .entry-content {
  background: #ffffff !important;
  padding-top: 16px !important;
  padding-bottom: 48px !important;
}



body.page-id-2260 .mw-calc-layout {
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}

body.page-id-2260 .mw-calc-sidebar {
  position: sticky !important;
  top: 90px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 16px 14px !important;
}

body.page-id-2260 .mw-calc-sidebar h4 {
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  margin: 0 0 10px !important;
}

body.page-id-2260 .mw-calc-sidebar a {
  display: block !important;
  padding: 10px 11px !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
  line-height: 1.25 !important;
}

body.page-id-2260 .mw-calc-sidebar a:hover {
  background: #eff6ff !important;
  color: #1e3a8a !important;
  text-decoration: none !important;
}

body.page-id-2260 .mw-calc-sidebar a[aria-current="page"] {
  background: #1e3a8a !important;
  color: #ffffff !important;
}

body.page-id-2260 .mw-calc-main {
  min-width: 0 !important;
}

body.page-id-2260 .mw-hero {
  background: #eef3f8 !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 16px !important;
  padding: 34px 38px !important;
  margin: 0 0 0 !important;
  color: #102a55 !important;
}

body.page-id-2260 .mw-hero h2 {
  font-size: 38px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -.03em !important;
  color: #102a55 !important;
  margin: 0 !important;
}

body.page-id-2260 .mw-intro {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 14px 0 8px !important;
  margin: 0 0 18px !important;
}

body.page-id-2260 .mw-intro p {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  max-width: 780px !important;
}

body.page-id-2260 .cow-card,
body.page-id-2260 .cow-disclaimer {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.04) !important;
}

body.page-id-2260 .cow-actions .cow-btn.primary {
  background: #0a66c2 !important;
  color: #ffffff !important;
}

body.page-id-2260 .cow-actions .cow-btn.secondary {
  background: #f6f7f9 !important;
  color: #0a66c2 !important;
  border: 1px solid #d6dfef !important;
}

@media (max-width: 900px) {
  body.page-id-2260 .mw-calc-page {
    padding: 0 14px !important;
  }

  body.page-id-2260 .mw-calc-layout {
    grid-template-columns: 1fr !important;
  }

  body.page-id-2260 .mw-calc-sidebar {
    position: static !important;
  }

  body.page-id-2260 .mw-calc-sidebar a {
    display: inline-block !important;
    margin: 0 3px 6px 0 !important;
  }

  body.page-id-2260 .mw-hero {
    padding: 24px !important;
  }

  body.page-id-2260 .mw-hero h2 {
    font-size: 32px !important;
  }
}

/* Cost of Waiting - white page panel */
body.page-id-2260 article.post-2260 {
  --theme-boxed-content-spacing: 0px !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cost of Waiting - release Gutenberg content width */
body.page-id-2260 .entry-content,
body.page-id-2260 .entry-content > *,
body.page-id-2260 .entry-content .wp-block-html {
  max-width: none !important;
  width: 100% !important;
}
