/* ===== The new site footer (Theme Settings > Footer Content > Layout: New) ===== */
.mfol-footer {
  font-family: var(--f-body);
  padding: clamp(56px, 7vw, 96px) var(--outer-padding) 32px;
}
.mfol-footer--compact {
  padding-top: clamp(40px, 5vw, 64px);
}
.mfol-footer--bg-black { background: var(--color-black); }
.mfol-footer--bg-white { background: var(--color-white); }
.mfol-footer--bg-gray { background: var(--color-gray); }
.mfol-footer--bg-green { background: var(--color-green); }
.mfol-footer--bg-yellow { background: var(--color-yellow); }
.mfol-footer--bg-orange { background: var(--color-orange); }
.mfol-footer--bg-blue { background: var(--color-blue); }
.mfol-footer--bg-pink { background: var(--color-pink); }
.mfol-footer--text-white { color: var(--color-white); }
.mfol-footer--text-black { color: var(--color-black); }
.mfol-footer a {
  color: inherit;
}
.mfol-footer__inner {
  margin: 0 auto;
  max-width: 1240px;
}

/* Top: brand, link columns, action */
.mfol-footer__top {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .mfol-footer__top {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .mfol-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1100px) {
  .mfol-footer__top {
    column-gap: clamp(32px, 3.5vw, 64px);
    grid-template-columns: var(--mfol-ft-grid, minmax(0, 1.3fr) minmax(0, 2fr) minmax(0, 1.4fr));
  }
  .mfol-footer__brand {
    grid-column: auto;
  }
  /* Each link column takes its own slot in the row */
  .mfol-footer__top > .mfol-footer__columns {
    display: contents;
  }
}
.mfol-footer--compact .mfol-footer__top {
  gap: 32px;
}

/* Brand */
.mfol-footer__logo {
  color: var(--mfol-ft-logo, currentColor);
  display: inline-block;
}
.mfol-footer__logo svg {
  display: block;
  fill: currentColor;
  height: auto;
}
.mfol-footer__logo--wordmark svg,
.mfol-footer__logo--people svg {
  max-width: 100%;
  width: min(var(--mfol-ft-logo-w, 180px), 60vw);
}
.mfol-footer__blurb {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 22px 0 0;
  max-width: 38ch;
}

/* Social links (new footer, and logos in the original footer) */
.mfol-social {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mfol-footer__social {
  margin-top: 26px;
}
.mfol-social__item {
  margin: 0;
}
.mfol-social__item a {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}
.mfol-social__item a:hover .mfol-social__label,
.mfol-social__item a:focus-visible .mfol-social__label {
  text-decoration: underline;
}
.mfol-social__item a:hover .mfol-social__icon,
.mfol-social__item a:focus-visible .mfol-social__icon {
  opacity: 0.7;
}
.mfol-social__icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: var(--mfol-ft-icon, 22px);
  justify-content: center;
  transition: opacity 0.15s ease;
  width: var(--mfol-ft-icon, 22px);
}
/* Every logo fits the same square box, centered */
.mfol-social__icon svg {
  display: block;
  fill: currentColor;
  height: 100%;
  width: 100%;
}
.mfol-social__sr,
.mfol-footer__sr {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* Link columns */
.mfol-footer__columns {
  display: grid;
  gap: 32px 28px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.mfol-footer__heading {
  color: var(--mfol-ft-head, currentColor);
  display: block;
  font-family: var(--f-trim);
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  font-weight: var(--f-trim-weight, 700);
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.mfol-footer__heading--blank {
  visibility: hidden;
}
.mfol-footer__summary {
  align-items: center;
  cursor: default;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 18px;
}
.mfol-footer__summary::-webkit-details-marker {
  display: none;
}
.mfol-footer__chevron {
  display: none;
}
.mfol-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mfol-footer__links li {
  margin: 0 0 14px;
}
.mfol-footer__links a {
  font-size: 1.0625rem;
  text-decoration: none;
}
.mfol-footer__links a:hover,
.mfol-footer__links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mfol-footer--compact .mfol-footer__links li {
  margin-bottom: 10px;
}

/* Action column */
.mfol-footer__action-heading {
  margin-bottom: 16px;
}
.mfol-footer__action-text {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
}
.mfol-footer__buttons {
  margin-top: 22px;
}
.mfol-footer--text-white .mfol-footer__buttons .btn--outline,
.mfol-footer--text-white .mfol-footer__buttons .mfol-btn--outline {
  --button-border-color: var(--color-white);
  --button-color: var(--color-white);
  --button-bg-hover: var(--color-white);
  --button-color-hover: var(--color-black);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Bottom bar */
.mfol-footer__bottom {
  font-size: 0.9375rem;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  text-align: center;
}
.mfol-footer--compact .mfol-footer__bottom {
  margin-top: clamp(36px, 4vw, 56px);
}
.mfol-footer__bottom--line {
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
}
.mfol-footer__fine {
  line-height: 1.5;
  margin: 0 auto 16px;
  max-width: 820px;
  opacity: 0.85;
}
.mfol-footer__fine p {
  margin: 0 0 6px;
}
.mfol-footer__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
}
.mfol-footer__copyright {
  margin: 0;
}
.mfol-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mfol-footer__legal a {
  text-decoration: none;
}
.mfol-footer__legal a:hover,
.mfol-footer__legal a:focus-visible {
  text-decoration: underline;
}
.mfol-footer__meta .mfol-footer__social {
  margin: 0;
}

/* Phones: link columns open and close */
@media (max-width: 767px) {
  .mfol-footer--collapse .mfol-footer__columns {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .mfol-footer--collapse .mfol-footer__col {
    border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  }
  .mfol-footer--collapse .mfol-footer__col:last-child {
    border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  }
  .mfol-footer--collapse .mfol-footer__summary {
    cursor: pointer;
    margin: 0;
    padding: 16px 0;
  }
  .mfol-footer--collapse .mfol-footer__heading--blank {
    visibility: visible;
  }
  .mfol-footer--collapse .mfol-footer__chevron {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
    height: 10px;
    margin-right: 4px;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
    width: 10px;
  }
  .mfol-footer--collapse .mfol-footer__details[open] .mfol-footer__chevron {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .mfol-footer--collapse .mfol-footer__links {
    padding-bottom: 8px;
  }
  .mfol-footer__meta {
    flex-direction: column;
  }
}

/* Logos in the original footer: spaced out, with no bullets between them */
.site-footer .site-footer__social-nav .mfol-social--icons li:not(:last-child)::after,
.site-footer .site-footer__social-nav .mfol-social--both li:not(:last-child)::after {
  content: none;
}
.site-footer .site-footer__social-nav .mfol-social--icons,
.site-footer .site-footer__social-nav .mfol-social--both {
  gap: 14px 22px;
}

@media (prefers-reduced-motion: reduce) {
  .mfol-social__icon,
  .mfol-footer--collapse .mfol-footer__chevron {
    transition: none;
  }
}

/* Social logos in rows of 3 to 8 */
.mfol-footer--icon-rows .mfol-footer__social .mfol-social {
  display: grid;
  gap: 16px 22px;
  grid-template-columns: repeat(var(--mfol-ft-icon-cols, 5), max-content);
}

/* Sizes */
.mfol-footer--head-small .mfol-footer__heading {
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
}
.mfol-footer--head-large .mfol-footer__heading {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}
.mfol-footer--link-small .mfol-footer__links a {
  font-size: 0.9375rem;
}
.mfol-footer--link-large .mfol-footer__links a {
  font-size: 1.25rem;
}
.mfol-footer--text-small .mfol-footer__blurb,
.mfol-footer--text-small .mfol-footer__action-text {
  font-size: 0.9375rem;
}
.mfol-footer--text-large .mfol-footer__blurb,
.mfol-footer--text-large .mfol-footer__action-text {
  font-size: 1.25rem;
}

/* Headings never break inside a word */
.mfol-footer__heading {
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

/* ===== Phone link columns open and close smoothly (browsers without this simply snap) ===== */
@supports (interpolate-size: allow-keywords) {
  .mfol-footer {
    interpolate-size: allow-keywords;
  }
  .mfol-footer__details::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.18s ease-in, content-visibility 0.18s allow-discrete;
  }
  .mfol-footer__details[open]::details-content {
    height: auto;
    transition: height 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.25s allow-discrete;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mfol-footer__details::details-content {
    transition: none !important;
  }
}

/* ===== Footer button hovers on a dark footer: both turn white with black text, so neither
   disappears into the background (the outline button's text used to turn white on white,
   and the filled button turned black on black) ===== */
.mfol-footer--text-white .mfol-footer__buttons :is(.btn--outline, .mfol-btn--outline):is(:hover, :focus-visible) {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
}
.mfol-footer--bg-black .mfol-footer__buttons .btn {
  --button-bg-hover: var(--color-white);
  --button-border-color-hover: var(--color-white);
  --button-color-hover: var(--color-black);
}
.mfol-footer--bg-black .mfol-footer__buttons .btn.mfol-btn--white {
  --button-bg-hover: var(--color-orange);
  --button-border-color-hover: var(--color-orange);
}

/* ===== Phones: a simpler order. Logo and blurb, then the Donate and Take Action buttons,
   then the link sections (one per row), then the legal line. The "Join the movement"
   heading and text are hidden on phones since they repeat the blurb right above. ===== */
@media (max-width: 767px) {
  .mfol-footer .mfol-footer__top {
    gap: 32px;
  }
  .mfol-footer .mfol-footer__top > .mfol-footer__brand {
    order: 0;
  }
  .mfol-footer .mfol-footer__top > .mfol-footer__action {
    order: 1;
  }
  .mfol-footer .mfol-footer__top > .mfol-footer__columns {
    order: 2;
  }
  .mfol-footer .mfol-footer__action > .mfol-footer__heading,
  .mfol-footer .mfol-footer__action > .mfol-footer__action-text {
    display: none;
  }
  .mfol-footer .mfol-footer__action .mfol-footer__buttons {
    display: grid;
    gap: 12px;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-top: 0;
  }
  .mfol-footer .mfol-footer__action .mfol-footer__buttons a {
    align-self: stretch;
    justify-content: center;
    margin: 0;
    width: 100%;
  }
  /* Tap-to-open sections: always one per row */
  .mfol-footer.mfol-footer--collapse .mfol-footer__top .mfol-footer__columns {
    grid-template-columns: minmax(0, 1fr);
  }
}
