/* Shared footer template: remove the empty flexible row on small screens. */
@media (max-width: 767px) {
  body #tequila-footer {
    padding: 36px 0 28px;
  }

  body #tequila-footer #brxe-tqfcon {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, auto);
    align-content: start;
    gap: 0;
    min-height: 0;
    width: calc(100% - var(--page-gutter) * 2);
  }

  body #tequila-footer #brxe-tqfint {
    grid-column: 1;
    grid-row: 1;
  }

  body #tequila-footer #brxe-tqfdes {
    max-width: 42ch;
    margin-top: 10px;
    line-height: 1.35;
  }

  body #tequila-footer #brxe-tqflnk {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 36px 0 0;
  }

  body #tequila-footer #brxe-tqfmai {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    max-width: 100%;
    margin-top: 28px;
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body #tequila-footer #brxe-tqfcop {
    grid-column: 1;
    grid-row: 4;
    margin-top: 24px;
  }
}
