/* Compact, responsive homepage footer overrides. Footer markup and content remain unchanged. */
.site-footer {
  padding: 30px 0 0;
}

.site-footer .advocate-footer-photo {
  width: min(100%, 255px);
  height: auto;
  max-height: 120px;
  object-fit: cover;
}

.site-footer .faq-list {
  gap: 4px;
}

.site-footer .faq button {
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer .footer-col:nth-child(3) .footer-link {
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer .footer-col:nth-child(3) .footer-link + .footer-link {
  margin-top: 4px;
}


.site-footer .justice-mark {
  width: min(100%, 120px);
  height: 90px;
  max-height: 90px;
  object-fit: contain;
  margin-top: 8px;
}


.site-footer .contact-with-socials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 10px;
}

.site-footer .socials.footer-socials-vertical {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.site-footer .socials.footer-socials-vertical a {
  width: 36px;
  height: 36px;
}

@media (max-width: 760px) {
  .site-footer {
    padding: 24px 0 0;
  }

  .site-footer .advocate-footer-photo {
    width: min(100%, 255px);
    max-height: 120px;
  }

  .site-footer .justice-mark {
    width: min(100%, 120px);
    height: 90px;
    max-height: 90px;
  }


}

/* Consistent footer typography at all viewport sizes. */
.site-footer .footer-brand .brand-name {
  font-size: 14px;
  line-height: 1.4;
}

.site-footer .footer-title {
  font-size: 13px;
  line-height: 1.4;
}

.site-footer .footer-brand .brand-role,
.site-footer .footer-brand .brand-tag,
.site-footer .footer-about,
.site-footer .faq button,
.site-footer .faq-answer,
.site-footer .footer-col:nth-child(2) > .btn,
.site-footer .footer-col:nth-child(3) .footer-link,
.site-footer .contact-line,
.site-footer .footer-bottom {
  font-size: 12px;
}

.site-footer .footer-about {
  line-height: 1.6;
}

.site-footer .faq button {
  line-height: 1.5;
}

.site-footer .faq-answer {
  line-height: 1.65;
}

.site-footer .footer-col:nth-child(3) .footer-link {
  line-height: 1.5;
}

.site-footer .contact-line {
  line-height: 1.7;
}

.site-footer .legal-links a {
  font-size: 10px;
}

.site-footer .legal-links a:first-child {
  font-size: 12px;
}

/* Tighten FAQ column rhythm while keeping question text at 12px. */
.site-footer .faq-list {
  gap: 2px;
}

.site-footer .faq button {
  padding: 2px 0;
  font-size: 12px;
  line-height: 1.4;
}

.site-footer .faq-answer {
  margin-top: 4px;
  padding: 6px 0 8px;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer .footer-col:nth-child(2) > .btn {
  margin-top: 8px !important;
}

/* Reduce footer whitespace only; preserve all text, logo, and image sizes. */
.site-footer {
  padding-top: 22px;
}

.site-footer .footer-col {
  padding-bottom: 6px;
}

.site-footer .footer-brand {
  margin-bottom: 5px;
}

.site-footer .footer-title {
  margin-bottom: 10px;
}

.site-footer .advocate-footer-photo {
  margin-top: 10px;
}

.site-footer .faq-list {
  gap: 0;
}

.site-footer .faq button {
  padding-top: 1px;
  padding-bottom: 1px;
}

.site-footer .footer-col:nth-child(3) .footer-link + .footer-link {
  margin-top: 2px;
}

.site-footer .contact-list {
  gap: 6px;
}

.site-footer .justice-mark {
  margin-top: 6px;
}

.site-footer .contact-with-socials {
  gap: 8px;
}

.site-footer .socials.footer-socials-vertical {
  gap: 6px;
}


.site-footer .footer-bottom {
  padding-top: 6px;
  padding-bottom: 6px;
}

@media (max-width: 760px) {
  .site-footer {
    padding-top: 18px;
  }

  .site-footer .footer-grid {
    row-gap: 12px;
  }

  .site-footer .footer-col {
    padding-bottom: 10px;
  }
}


/* Enlarge the Lady Justice artwork within the existing social-column height. */
.site-footer .justice-mark {
  width: min(100%, 120px);
  height: 110px;
  max-height: 110px;
  margin-top: 0;
  margin-bottom: -5px;
  object-fit: contain;
  transform: translateY(8px) scale(1.15);
}

.site-footer .footer-bottom,
.site-footer .footer-bottom .legal-links a {
  font-size: 9px;
}

/* Footer FAQ answers glide over the existing column without affecting its layout. */
.site-footer .footer-faq-column .faq-list {
  position: relative;
  overflow: hidden;
}

.site-footer .faq-answer-curtain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
  background: #121212;
  color: #e5e5e5;
  cursor: pointer;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .32s ease, visibility 0s linear .32s;
}

.site-footer .faq-answer-curtain.is-open {
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.site-footer .faq-curtain-close {
  align-self: flex-end;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: #c5a059;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.site-footer .faq-curtain-question {
  margin: 6px 24px 10px 0;
  color: #f3d18f;
  font-size: 13px;
  line-height: 1.45;
}

.site-footer .faq-curtain-answer {
  margin: 0;
  color: #e0e0e0;
  font-size: 12px;
  line-height: 1.55;
}

.page-content .page-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-content .page-contact-list .contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.page-content .page-contact-list .contact-line:last-child {
  margin-bottom: 0;
}

.page-content .page-contact-list .contact-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 24px;
}

/* Spread footer FAQ and recourse rows across the existing desktop column space. */
@media (min-width: 1101px) {
  .site-footer .footer-faq-column .faq-list {
    gap: 2px;
  }

  .site-footer .footer-faq-column .faq button {
    padding-top: 2.5px;
    padding-bottom: 2.5px;
  }

  .site-footer .footer-col:nth-child(3) .footer-link {
    padding-top: 0.5px;
    padding-bottom: 0.5px;
  }

  .site-footer .footer-col:nth-child(3) .footer-link + .footer-link {
    margin-top: 3px;
  }
}
