body.home .entry-title,
body.home .page-title,
body.home h1.entry-title {
	  display: none !important;
}

/* ===== Popular Articles grid ===== */
.popular-articles-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0 32px 64px;
  max-width: 1100px;
  margin: 0 auto;
}
.popular-articles-grid .wp-block-post-template > li { list-style: none; }
.popular-articles-grid .wp-block-post-featured-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 900px) {
  .popular-articles-grid .wp-block-post-template { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .popular-articles-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

/* ===== Brand system: blue / ink / Archivo + Newsreader ===== */
body, p, li, input, textarea, button, .wp-block-post-excerpt, .wp-block-post-date {
  font-family: 'Archivo', sans-serif;
}
.wp-block-heading, .entry-title, .site-title, .wp-block-post-title {
  font-family: 'Archivo', sans-serif;
}

/* Fix rogue pink/magenta default accent leaking onto unstyled elements */
.site-title, .site-title a,
.entry-title, .entry-title a,
.wp-block-post-title a,
.page-title {
  color: #0B1520 !important;
}
.entry-title a:hover, .wp-block-post-title a:hover, .site-title a:hover {
  color: #1461C4 !important;
}

/* Primary nav menu links */
#site-navigation ul li a, .primary-menu a, nav.main-navigation a {
  color: #0B1520 !important;
}
#site-navigation ul li a:hover, .primary-menu a:hover, nav.main-navigation a:hover {
  color: #1461C4 !important;
}

/* Category / terms tags */
.wp-block-post-terms a {
  color: #1461C4 !important;
  text-decoration: none;
  font-weight: 600;
}

body { color: #0B1520; }

.footer-nav-fallback a { color: #0B1520 !important; }
.footer-nav-fallback a:hover { color: #1461C4 !important; }

.site-navigation .menu a, .site-navigation a { color: #0B1520 !important; }
.site-navigation .menu a:hover, .site-navigation a:hover { color: #1461C4 !important; }

h1 a, h2 a, h3 a, h4 a, .wp-block-heading a {
  color: #0B1520 !important;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, .wp-block-heading a:hover {
  color: #1461C4 !important;
}

.wp-block-heading { color: #0B1520 !important; }
.wp-block-heading[style*="color: #ffffff"], .wp-block-heading[style*="color:#ffffff"] { color: #ffffff !important; }

.wp-block-jetpack-subscriptions__form-elements button { color: #0B1520 !important; border-color: #0B1520 !important; }
.wp-block-jetpack-subscriptions__form-elements button:hover { color: #1461C4 !important; border-color: #1461C4 !important; }

.real-subscribe-live input[type="email"] {
  background-color: #ffffff !important;
  color: #0B1520 !important;
  border-radius: 6px !important;
}
.real-subscribe-live button, .real-subscribe-live input[type="submit"] {
  background-color: #ffffff !important;
  color: #1461C4 !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  border: none !important;
}
.real-subscribe-live button:hover, .real-subscribe-live input[type="submit"]:hover {
  background-color: #E2E8F1 !important;
}

/* Rich sitewide footer */
footer.site-footer {
  background-color: #0B1520;
}
.rich-footer {
  padding: 48px 32px 0;
  max-width: 1240px;
  margin: 0 auto;
}
.rich-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.rich-footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  border-radius: 6px;
}
.rich-footer-tagline {
  color: #8a94a6;
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}
.rich-footer-heading {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}
.rich-footer-col a {
  display: block;
  color: #c7d4e6;
  font-size: 14px;
  margin-bottom: 8px;
  text-decoration: none;
}
.rich-footer-col a:hover { color: #1461C4; }
.rich-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  font-size: 12px;
  color: #8a94a6;
}
.rich-footer-bottom p { margin: 0; }
@media (max-width: 700px) {
  .rich-footer-top { grid-template-columns: 1fr; }
  .rich-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* Outline buttons (Intelligence Desk CTA + Browse by Subject pills) -> filled blue */
.wp-block-button__link[style*="c7d4e6"] {
  background-color: #1461C4 !important;
  border-color: #1461C4 !important;
  color: #ffffff !important;
}
.wp-block-button__link[style*="c7d4e6"]:hover {
  background-color: #0E4FA0 !important;
  border-color: #0E4FA0 !important;
}

/* Keep the testimonial byline in title case, not uppercase */
p[style*="text-transform: uppercase"][style*="1461c4"] {
  text-transform: none !important;
}
