/* MuniGrowth v2 brand layer for the public site.
   Loaded last so it can settle the shared chrome (navbar CTA, footer)
   on the logo palette: navy #0c2152, blue #0a6fa3, orange #f47a3d. */

body.mg-public .p95-nav-cta,
body.mg-public .btn-nav-demo {
  background: #f47a3d !important;
  border-color: #f47a3d !important;
  color: #0c2152 !important;
  font-weight: 700;
}
body.mg-public .p95-nav-cta:hover,
body.mg-public .btn-nav-demo:hover {
  background: #e8692a !important;
  border-color: #e8692a !important;
  color: #0c2152 !important;
}

body.mg-public footer.mg-footer-sovereign {
  background: #0c2152;
  color: rgba(255, 255, 255, 0.72);
}
body.mg-public footer.mg-footer-sovereign a { color: rgba(255, 255, 255, 0.82); }
body.mg-public footer.mg-footer-sovereign a:hover { color: #ffffff; }
body.mg-public footer.mg-footer-sovereign .mg-footer-wordmark-accent { color: #f47a3d; }

/* Legibility on dark panels. Several public sections sit on navy; after the
   teal → blue rebrand their accent links, outline buttons and headings need
   light tones to stay above WCAG AA contrast. */
body.mg-public :is(.pricing-final-cta, .mg-contact-context-panel, .samples-closing-cta, .blog-hero, .p95-page-hero--dark, .home-cta-section) :is(h1, h2, h3, h4) {
  color: #ffffff;
}
body.mg-public :is(.pricing-final-cta, .mg-contact-context-panel, .samples-closing-cta, .blog-hero, .p95-page-hero--dark) :is(p, li, .section-label, .p95-measure) {
  color: #c3d0e8;
}
body.mg-public :is(.pricing-final-cta, .mg-contact-context-panel, .samples-closing-cta, .blog-hero, .p95-page-hero--dark) a:not(.btn) {
  color: #8fd8f5;
}
body.mg-public :is(.pricing-final-cta, .mg-contact-context-panel, .samples-closing-cta, .blog-hero, .p95-page-hero--dark) :is(strong, h3, h4, .step-title) {
  color: #ffffff;
}
body.mg-public :is(.pricing-final-cta, .samples-closing-cta, .blog-hero, .p95-page-hero--dark) :is(.btn-outline-primary, .btn-outline-dark, .btn-outline-light),
body.mg-public .p95-btn--on-dark,
body.mg-public .btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: transparent;
}
body.mg-public :is(.pricing-final-cta, .samples-closing-cta, .blog-hero, .p95-page-hero--dark) :is(.btn-outline-primary, .btn-outline-dark, .btn-outline-light):hover,
body.mg-public .p95-btn--on-dark:hover {
  background: #ffffff !important;
  color: #0c2152 !important;
}
body.mg-public .blog-hero .cat-pill { color: #ffffff; border-color: rgba(255, 255, 255, 0.4); }
body.mg-public .blog-hero .cat-pill.active,
body.mg-public .blog-hero .cat-pill[aria-current] { background: #ffffff; color: #0c2152; }
body.mg-public .mg-cta-email-link { color: #8fd8f5; }

/* Footer fine print was below AA. */
body.mg-public footer.mg-footer-sovereign :is(.footer-disclaimer, .mg-footer-copy) { color: rgba(255, 255, 255, 0.72); }

/* Light-surface greys that were too faint. */
body.mg-public :is(.blog-card-author-info, .feat-grant-match-label, .feat-dash-kpi-label, .feat-grant-panel-eyebrow, .feat-dash-head) { color: #5f6b7a; }

/* Case-study card headers on the brand palette. */
body.mg-public .mg-card-head--navy { background-color: #0c2152 !important; }
body.mg-public .mg-card-head--orange { background-color: #b84410 !important; }

/* Remaining AA fixes from the contrast scan. */
body.mg-public .samples-top-banner a { color: #ffffff; text-decoration: underline; }
body.mg-public .blog-hero :is(.section-label, .p95-measure) { color: #c3d0e8 !important; }
body.mg-public .text-success { color: #146c43 !important; }
body.mg-public .mg-proposal-privacy-note { color: #556275; }

/* Cookie banner link on navy (was dark blue, 2.95:1). */
body.mg-public .mg-cookie-banner a,
body .mg-cookie-banner a.text-white-50 { color: #8fd8f5 !important; text-decoration: underline; }

/* Legible minimum size (Lighthouse: text under 12px). */
body.mg-public footer.mg-footer-sovereign .footer-disclaimer { font-size: 12.5px; line-height: 1.6; }
body.mg-public .mg-proposal-privacy-note,
body.mg-public .mg-proposal-label { font-size: 13px; }

/* Secondary outline buttons on the light public canvas (Bootstrap grey is 4.4:1). */
body.mg-public .btn-outline-secondary {
  --bs-btn-color: #4b5563;
  --bs-btn-border-color: #9aa3ae;
}

/* Public card icons: one calm, legible system (tinted tile + brand glyph)
   instead of mixed gradients where white glyphs vanished on light teal. */
body.mg-public .mg-card .card-icon {
  background: #e7f1f8 !important;
  color: #0a5a85 !important;
  border: 1px solid #d3e4f0;
}
body.mg-public .mg-card .card-icon.bg-green-gradient {
  background: #fff1e8 !important;
  color: #b4501c !important;
  border-color: #fbd9c4;
}
body.mg-public .mg-card .card-icon.bg-accent {
  background: #e9edf6 !important;
  color: #0c2152 !important;
  border-color: #d5dcec;
}
body.mg-public .mg-card .card-icon .bi { font-size: 1.5rem; line-height: 1; }
