/* The expanded newsletter uses the same warm, dark and orange palette. */
.site-footer #footer-newsletter-panel {
  padding: 0;
  margin-top: 2rem;
}

.site-footer #footer-newsletter-panel[hidden] {
  display: none;
}

.site-footer .footer-newsletter-card {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 120, 79, 0.3);
  border-radius: 20px;
  color: #fff7ec;
  background: #262322;
}

.site-footer #footer-newsletter-panel .section-tag {
  margin-bottom: 0.75rem;
  color: rgba(255, 247, 236, 0.65);
}

.site-footer #footer-newsletter-panel .footer-newsletter-heading {
  margin: 0 0 0.75rem;
  color: #fff7ec;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.site-footer #footer-newsletter-panel .footer-newsletter-description {
  max-width: none;
  margin: 0;
  color: rgba(255, 247, 236, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.site-footer #footer-newsletter-panel .footer-subscribe-form {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.site-footer #footer-newsletter-panel .footer-newsletter-email-label {
  display: block;
  margin-bottom: 0.6rem;
  color: #fff7ec;
  font-size: 0.8125rem;
  font-weight: 600;
}

.site-footer .footer-newsletter-fields {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}

.site-footer #footer-newsletter-panel .footer-subscribe-input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 247, 236, 0.25);
  outline: none;
  color: #fff7ec;
  background: rgba(255, 247, 236, 0.04);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer #footer-newsletter-panel .footer-subscribe-input::placeholder {
  color: rgba(255, 247, 236, 0.45);
  opacity: 1;
}

.site-footer #footer-newsletter-panel .footer-subscribe-input:focus {
  border-color: #ff784f;
  box-shadow: 0 0 0 3px rgba(255, 120, 79, 0.15);
}

.site-footer #footer-newsletter-panel .footer-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid #ff784f;
  color: #262322;
  background: #ff784f;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer #footer-newsletter-panel .footer-subscribe-btn:hover {
  opacity: 1;
  border-color: #ff986f;
  background: #ff986f;
}

.site-footer #footer-newsletter-panel .footer-subscribe-btn:focus-visible {
  outline: 2px solid #fff7ec;
  outline-offset: 4px;
}

.site-footer #footer-newsletter-panel .footer-newsletter-note {
  margin: 0.75rem 0 0;
  color: rgba(255, 247, 236, 0.6);
  font-size: 0.75rem;
  line-height: 1.7;
}

.site-footer #footer-newsletter-panel .footer-newsletter-note a {
  color: #ff986f;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 1101px) {
  .site-footer #footer-newsletter-panel .footer-newsletter-description {
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  .site-footer .footer-newsletter-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .site-footer .footer-newsletter-fields {
    flex-direction: column;
  }

  .site-footer #footer-newsletter-panel .footer-subscribe-input {
    flex-basis: auto;
  }

  .site-footer #footer-newsletter-panel .footer-subscribe-btn {
    align-self: flex-start;
  }
}


/* Mobile: actions in the first column, social links in the second. */
@media (max-width: 768px) {
  .site-footer .footer-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: clamp(.75rem, 3vw, 1.5rem) !important;
    row-gap: 1rem !important;
    align-items: start;
  }
  .site-footer .footer-copy-grid > .footer-column:not(.footer-column--meta) { grid-column: 1; }
  .site-footer .footer-newsletter-toggle { text-align: left; }
  .site-footer .footer-column--meta {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end !important;
    text-align: right !important;
    padding-top: 0 !important;
    margin-left: 0 !important;
  }
  .site-footer .footer-social-stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: .75rem;
  }
  .site-footer .footer-social-icons {
    justify-content: flex-end;
    gap: .85rem;
  }
  .site-footer .footer-social-icon { color: var(--narrow-accent); }
  .site-footer .footer-locations {
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .site-footer .footer-util {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: .125rem .875rem !important;
  }
  .site-footer .footer-util-row1,
  .site-footer .footer-util-row2 { display: contents; }
  .site-footer .footer-separator { display: none; }
  .site-footer .footer-util a {
    padding: .25rem 0;
    font-size: .75rem;
    line-height: 1.5;
    white-space: nowrap;
  }
  .site-footer .footer-copyright {
    order: 1;
    flex: 0 0 100%;
    margin-top: .5rem;
    font-size: .75rem;
  }
}
