/*
 * Footer refinement.
 *
 * Keep the footer deliberately quiet: navigation, a small mixed-surface
 * Grindline, then only the legal line. The positioning statement belongs in
 * the page content, not in the utility footer.
 */

.footer-logo-space {
  display: none !important;
}

.footer-desc,
.footer-col,
.footer-grind {
  transform: none !important;
}

.footer-desc {
  width: auto !important;
  min-width: 0;
  text-align: center;
}

.footer,
.footer-desc,
.footer-col,
.footer .footer-col:nth-of-type(3),
.footer .footer-col:nth-of-type(4),
.footer .footer-col:nth-of-type(5) {
  font-family: 'PT Mono', 'Courier New', monospace !important;
  font-stretch: normal !important;
  font-style: normal !important;
}

.footer-col,
.footer .footer-col:nth-of-type(3),
.footer .footer-col:nth-of-type(4),
.footer .footer-col:nth-of-type(5) {
  width: auto !important;
  min-width: 0;
  transform: none !important;
  letter-spacing: -0.01em !important;
}

.footer h4,
.footer .footer-col h4,
.footer .footer-col:nth-of-type(3) h4,
.footer .footer-col:nth-of-type(4) h4,
.footer .footer-col:nth-of-type(5) h4 {
  font-family: 'PT Sans Narrow', 'Arial Narrow', sans-serif !important;
  font-stretch: normal !important;
  font-style: normal !important;
  transform: none !important;
  letter-spacing: 0 !important;
}

.footer-about-copy {
  display: none !important;
}

.footer-grind {
  display: block;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.footer-legal {
  display: block;
  white-space: nowrap;
}

@media screen and (min-width: 1024px) {
  .footer {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto;
    column-gap: 48px !important;
    row-gap: 0 !important;
    padding-top: 34px !important;
    padding-bottom: 30px !important;
    align-items: start !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-col-grinds { grid-column: 1; grid-row: 1; }
  .footer-col-way { grid-column: 2; grid-row: 1; }
  .footer-col-about { grid-column: 3; grid-row: 1; }

  .footer h4 {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 0 9px !important;
  }

  .footer-grind {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(300px, 32vw) !important;
    max-width: 300px !important;
    justify-self: center !important;
    margin: 30px 0 0 !important;
  }

  .footer-desc {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    margin-top: 14px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

@media screen and (min-width: 761px) and (max-width: 1023px) {
  .footer {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto;
    column-gap: 32px !important;
    row-gap: 0 !important;
    padding: 30px 32px 28px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-col-grinds { grid-column: 1; grid-row: 1; }
  .footer-col-way { grid-column: 2; grid-row: 1; }
  .footer-col-about { grid-column: 3; grid-row: 1; }

  .footer h4 {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 0 8px !important;
  }

  .footer-grind {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(280px, 40vw) !important;
    max-width: 280px !important;
    justify-self: center !important;
    margin: 26px 0 0 !important;
  }

  .footer-desc {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    margin-top: 13px !important;
    font-size: 13px !important;
  }
}

@media screen and (max-width: 760px) {
  .footer {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto auto;
    column-gap: 36rem !important;
    row-gap: 0 !important;
    padding: 40rem 54rem 40rem !important;
    font-size: max(15px, 17rem) !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em !important;
  }

  .footer-col-grinds {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-col-way {
    grid-column: 2;
    grid-row: 1;
  }

  .footer-col-about {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 30rem;
  }

  .footer-col,
  .footer .footer-col:nth-of-type(3),
  .footer .footer-col:nth-of-type(4),
  .footer .footer-col:nth-of-type(5) {
    font-size: max(15px, 17rem) !important;
    line-height: 1.5 !important;
  }

  .footer h4 {
    font-size: max(18px, 21rem) !important;
    line-height: 1 !important;
    margin: 0 0 8rem !important;
  }

  .footer-grind {
    grid-column: 1 / -1;
    grid-row: 3;
    width: min(72vw, 280px) !important;
    max-width: 280px !important;
    justify-self: center !important;
    margin: 28rem 0 0 !important;
  }

  .footer-desc {
    grid-column: 1 / -1 !important;
    grid-row: 4;
    justify-self: center;
    margin-top: 14rem !important;
    font-size: max(14px, 16rem) !important;
    line-height: 1.5 !important;
  }
}
