/* Footer — multi-column layout matching design reference */
.footer--columns {
  /* Force a dark footer background to ensure contrast with headings */
  background: #0f1720 !important;
  color: var(--color-on-surface, #e6eef8);
  padding: 3rem 1rem 1rem;
  font-family: var(--site-font, Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer--columns .footer__top {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.footer--columns .footer__brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.footer--columns .footer__brand-link {
  color: var(--color-accent, #6ee7b7);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.footer--columns .footer__brand-text {
  display: block;
}

.footer--columns .footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 3rem;
  flex: 1;
}

.footer--columns .footer__column {
  display: flex;
  flex-direction: column;
}

.footer--columns .footer__column-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: 0.5px;
  color: #e6eef8 !important; /* force high contrast */
}

/* Strong fallback to ensure headings are visible even if other site CSS tries to override */
.footer--columns h3.footer__column-title,
.footer--columns h3.footer__column-title a {
  color: #e6eef8 !important;
  opacity: 1 !important;
}

.footer--columns .footer__column-link {
  color: rgba(230, 238, 248, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: color 160ms ease;
}

.footer--columns .footer__column-link:hover,
.footer--columns .footer__column-link:focus {
  color: var(--color-accent, #6ee7b7);
}

.footer--columns .footer__social {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.footer--columns .footer__social-link {
  color: rgba(230, 238, 248, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 140ms ease, color 140ms ease;
}

.footer--columns .footer__social-link:hover,
.footer--columns .footer__social-link:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent, #6ee7b7);
}

.footer--columns .footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer--columns .footer__copyright {
  font-size: 0.9rem;
  color: rgba(230, 238, 248, 0.65);
  text-align: left;
}

/* Responsive: stack columns on smaller viewports */
@media (max-width: 1024px) {
  .footer--columns .footer__top {
    gap: 1.5rem;
  }

  .footer--columns .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .footer--columns {
    padding: 2rem 1rem 1rem;
  }

  .footer--columns .footer__top {
    gap: 1rem;
  }

  .footer--columns .footer__columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer--columns .footer__column-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer--columns .footer__column-link {
    font-size: 0.9rem;
  }

  .footer--columns .footer__social {
    justify-content: flex-start;
  }
}

/* Accessibility: high contrast mode */
@media (prefers-contrast: more) {
  .footer--columns { background: #071022; color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }
  .footer--columns .footer__brand-link { color: #6ee7b7; }
  .footer--columns .footer__column-link { color: #ffffff; }
}

/* Compact footer block (scoped) */
.footer--compact {
  background: #0f1720;
  color: #e6eef8;
  padding: 1.5rem 1rem;
}

.footer--compact .footer__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer--compact .footer__brand-link {
  color: var(--color-accent, #6ee7b7);
  font-weight: 700;
  text-decoration: none;
}

.footer--compact .footer__center-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.footer--compact .footer__center-link {
  color: rgba(230,238,248,0.95);
  text-decoration: none !important;
  font-size: 0.95rem;
  padding: 0.2rem 0.4rem;
  transition: color 160ms ease;
}

.footer--compact .footer__center-link:hover,
.footer--compact .footer__center-link:focus {
  color: var(--color-accent, #6ee7b7);
}

.footer--compact .footer__social { display: flex; gap: 0.6rem; align-items: center; }

@media (max-width: 640px) {
  .footer--compact .footer__container { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer--compact .footer__center-links { order: 2; }
  .footer--compact .footer__brand { order: 1; }
  .footer--compact .footer__social { order: 3; }
}

/* Fix: make all featured images responsive across templates (mobile-safe)
   Targets classes used by the featured-image partial so all appearances
   (hero, related thumbnails, cards, posts) scale correctly on small screens.
*/
.featured-image img,
.featured-image,
.featured-img img,
.featured-img,
.post-featured img,
img.post-featured,
.post-featured,
.post-featured-image img,
.blog-hero-image,
img.blog-hero-image,
.blog-hero-image img,
.related-thumb img,
img.related-thumb,
.related-thumb,
.article-card-image img,
img.article-card-image,
.article-card-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.post-featured-image {
  max-width: 100%;
}

