/* Footer */
.footer{
  background:var(--panel);
  border-top:1px solid #1f2937;
  text-align:center;
  padding:2px 16px;
  color:var(--muted);
  font-size:14px;
}
.footer a{
  color:var(--link);
  margin:0 8px;
}
.footer a:hover{text-decoration:underline}

/* Footer Top Row Layout */
.footer-top-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 900px;
  margin: 0 auto 0.1rem;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
}

.footer-graphic {
  max-width: 200px;
  height: auto;
}

.footer-text-link {
  display: none;
  color: var(--link);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.footer-text-link:hover {
  text-decoration: underline;
}

.footer-newsletter {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 1px; /* Prevents collapse */
}

.footer-newsletter iframe {
  border: none;
  transition: opacity 0.2s ease-in;
}

/* Start iframes invisible to prevent flash */
.footer-newsletter iframe[style*="height: 0"] {
  opacity: 0;
  pointer-events: none;
}

/* Hide the pop-in form completely */
.footer-newsletter iframe[data-w-type="pop-in"] {
  display: none;
}

.footer-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}
.footer-left, .footer-center, .footer-right{
  flex:1;
  min-width:220px;
}
.footer-center img{
  max-height:80px;
  width:auto;
}
.footer-right p{
  margin:4px 0;
}
.footer-right .small{
  font-size:12px;
  color:var(--muted);
}
@media (max-width: 700px){
  .footer-bar{
    flex-direction:column;
    text-align:center;
  }
  .footer-left, .footer-center, .footer-right{
    flex:none;
  }
}

/* Mobile-specific footer adjustments */
@media (max-width: 768px) {
  /* Keep newsletter visible on mobile */
  .footer-newsletter {
    display: block !important;
  }
}

