/* ==========================================================================
   RIBS Technologies — /blog/ brand layer (Varient 3.1 "magazine" theme)
   Loaded after the theme and after assets/css/ribs-design-system.css (main site), so the
   blog uses the same palette, typography, buttons and footer pattern as the corporate site.
   File-based on purpose: the theme colour in the database stays untouched; this file overrides it.
   ========================================================================== */

/* Palette: Varient theme variables -> RIBS Primary Blue (was #19bc9c teal) */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --vr-theme-color: var(--ribs-blue);
  --vr-block-color: var(--ribs-blue);
  --vr-mega-menu-color: var(--ribs-blue);
  --vr-subscribe-button-color: var(--ribs-blue);
  --bs-link-color: var(--ribs-blue);
  --bs-link-hover-color: var(--ribs-blue-hover);
  --bs-link-color-rgb: 0, 112, 192;
  --vr-topbar-text-color: var(--ribs-utility-ink); /* was #d1d1d1 on the blue top bar (3.4:1) */
  --vr-topbar-text-color-hover: var(--ribs-utility-ink);
}

/* Typography follows the shared corporate token */
body, .navbar, .nav-link, h1, h2, h3, h4, h5, h6, .title, .post-title, .widget-title, button, input, select, textarea {
  font-family: var(--ribs-font) !important;
}
body { color: #111111; }

/* Header CTA — same component as the corporate service sub-nav */
.ribs-blog-cta { min-height: 38px; padding: 0 16px; font-size: 14px; white-space: nowrap; margin-left: 4px; }
.ribs-blog-cta, .ribs-blog-cta:visited { color: #FFFFFF !important; }
.ribs-blog-cta:hover { color: #FFFFFF !important; background: #005A9C; }
@media (max-width: 575px) { .ribs-blog-cta { display: none; } }

/* Buttons that used the theme colour */
.btn-custom, .newsletter-button, .btn-primary { background-color: #0070C0 !important; border-color: #0070C0 !important; color: #FFFFFF !important; }
.btn-custom:hover, .newsletter-button:hover, .btn-primary:hover { background-color: #005A9C !important; border-color: #005A9C !important; }

/* Footer: light corporate footer + Dark Grey copyright bar (matches every RIBS section) */
#footer { background: #F4F9FF !important; color: #111111; border-top: 1px solid #E7E6E6; }
#footer .footer-inner { background: transparent !important; }
#footer .widget-title, #footer h4 { color: #0070C0 !important; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
#footer .footer-about, #footer p, #footer .description, #footer li, #footer .footer-posts a, #footer .title a { color: #111111 !important; }
#footer a:hover { color: #0070C0 !important; }
#footer .newsletter-input, #footer .form-control { background: #FFFFFF !important; border: 1px solid #b3b3b3 !important; color: #111111 !important; }
#footer .footer-social-links a { color: #0070C0 !important; border-color: #D4E6F3 !important; background: #FFFFFF !important; }
#footer .footer-copyright { background: #595959 !important; color: #FFFFFF !important; border-top: 0 !important; }
#footer .footer-copyright, #footer .footer-copyright a, #footer .footer-copyright .copyright, #footer .nav-footer a { color: #FFFFFF !important; }
#footer .footer-copyright a:hover { color: #F2F2F2 !important; text-decoration: underline; }

/* top bar sits on Primary Blue: text must be white */
.top-bar, .top-bar a, .top-bar span, .top-bar li { color: #FFFFFF !important; }
.top-bar .dropdown-menu, .top-bar .dropdown-menu a, .top-bar .dropdown-menu span, .top-bar .dropdown-menu li { color: #111111 !important; }
