.foot .footer-banner { margin-bottom: 0; }
.foot .footer-resources { margin: 22px 0 30px; padding: 18px; border: 1px solid #53627a; border-radius: 14px; background: #19253d; }
.foot .footer-resources h2 { margin: 0 0 12px; color: #fff; text-align: center; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; }
.foot .footer-resources ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-width: 1030px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.foot .footer-resources li { min-width: 0; }
.wp-theme-oichalia-municipal .foot .footer-resources a {
  display: grid;
  grid-template-rows: 44px auto;
  align-content: center;
  gap: 4px;
  height: 100%;
  min-height: 80px;
  padding: 6px 8px;
  border: 1px solid #d5deeb;
  border-radius: 8px;
  background: #fff;
  color: #1d3659;
  text-align: center;
  text-decoration: none;
}
.foot .footer-resource-image { display: flex; justify-content: center; align-items: center; min-width: 0; }
.foot .footer-resource-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: 42px; }
.foot .footer-resource-label { font-size: .73rem; font-weight: 750; line-height: 1.32; }
.wp-theme-oichalia-municipal .foot .footer-resources a:hover,
.wp-theme-oichalia-municipal .foot .footer-resources a:focus-visible { background: #eaf2fc; color: #15345a; outline: 2px solid #8abbf3; outline-offset: 1px; }
@media (max-width: 760px) {
  .foot .footer-resources { padding: 12px; }
  .foot .footer-resources ul { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 490px; }
}

/* Map older Elementor and block accents to the municipal palette. */
.wp-theme-oichalia-municipal {
  --wp--preset--color--luminous-vivid-orange: #24547f;
  --wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg, #446b95, #18385d);
}
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-343b1e6 .elementor-heading-title,
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-46e2c25 .elementor-social-icon i { color: #24547f; }
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-46e2c25 .elementor-social-icon { border-color: #24547f; }
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-46e2c25 .elementor-social-icon svg { fill: #24547f; }
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-46e2c25 .elementor-social-icon:hover,
.wp-theme-oichalia-municipal .live-content .elementor-element .gto-team-2-member .t2-btn,
.wp-theme-oichalia-municipal #splw-location-weather-10405 :is(.splw-lite-wrapper, .splw-forecast-weather option) { background-color: #24547f; }
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-46e2c25 .elementor-social-icon:hover i { color: #fff; }
.wp-theme-oichalia-municipal .live-content .elementor-element.elementor-element-46e2c25 .elementor-social-icon:hover svg { fill: #fff; }

.foot .footer-resource-image { overflow: hidden; }
.foot .footer-resource-image img[src$="/community-2021-2027.jpg"] { transform: scale(2.4); }

.funding > .wrap { max-width: 950px; }
.funding-brand { margin-bottom: 22px; padding: 14px; background: #fff; border: 1px solid #d5deeb; border-radius: 12px; }
.funding-brand img { display: block; width: min(100%, 450px); height: auto; }
.funding h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 26px); line-height: 1.3; }
.funding a { color: #23395a; text-underline-offset: 3px; }
.funding a:hover { text-decoration: underline; }
.funding-projects { display: grid; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.funding-projects li, .funding-detail { padding: clamp(14px, 3vw, 24px); background: #fff; border: 1px solid #d5deeb; border-radius: 12px; }
.funding-projects a { display: inline-block; font-weight: 750; }
.funding-projects p { margin: 4px 0 0; color: #475b73; font-size: .9rem; }
.funding-detail { margin-top: 16px; }
.funding-facts { display: flex; flex-wrap: wrap; gap: 12px 25px; padding-block: 14px; }
.funding-facts dt { font-weight: 700; }
.funding-facts dd { margin: 0; }
.funding-links { margin: 0; padding-inline-start: 1.4em; }
.funding-links li + li { margin-top: 7px; }
.funding-links a { text-decoration: underline; }
